From: Mathieu Desnoyers Date: Sat, 7 Jan 2012 19:03:33 +0000 (-0500) Subject: Fix wrong variable error check X-Git-Tag: v0.9~40 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=9db125c858d53f10248e472b615bff763dcbc4ad Fix wrong variable error check Signed-off-by: Mathieu Desnoyers --- 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; }