From 9db125c858d53f10248e472b615bff763dcbc4ad Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sat, 7 Jan 2012 14:03:33 -0500 Subject: [PATCH] Fix wrong variable error check Signed-off-by: Mathieu Desnoyers --- formats/ctf/ctf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index 0f216933..752213ec 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -1264,7 +1264,7 @@ int ctf_open_trace_read(struct ctf_trace *td, const char *collection_path, return -EINVAL; } respath = realpath(path, td->path); - if (!rescolpath) { + if (!respath) { fprintf(stdout, "[error] path resolution failure\n"); return -EINVAL; } -- 2.34.1