Whamcloud - gitweb
LU-17000 utils: Fix check after return from fopen()
[fs/lustre-release.git] / lustre / utils / ofd_access_log_reader.c
index cf72d9e..051b76f 100644 (file)
@@ -792,8 +792,8 @@ int main(int argc, char *argv[])
                                trace_file = stdout;
                        } else {
                                trace_file = fopen(optarg, "a");
-                               if (debug_file == NULL)
-                                       FATAL("cannot open debug file '%s': %s\n",
+                               if (trace_file == NULL)
+                                       FATAL("cannot open trace file '%s': %s\n",
                                                optarg, strerror(errno));
                        }