From 6542cade9f86a383fbb857bb172ba74a4d91583d Mon Sep 17 00:00:00 2001 From: Lefteris Chatzimparmpas Date: Sun, 30 Oct 2011 13:21:32 +0100 Subject: [PATCH] Fix debug file opening check. --- src/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log.c b/src/log.c index 293c8fe..84b0a03 100644 --- a/src/log.c +++ b/src/log.c @@ -147,7 +147,7 @@ open_debug(void) return 1; debugfp = fopen(opts.debug, "w"); - if (logfp == NULL) { + if (debugfp == NULL) { error("opening debug file %s: %s\n", opts.debug, strerror(errno)); return 1; }