Fix debug file opening check.

This commit is contained in:
Lefteris Chatzimparmpas 2011-10-30 13:21:32 +01:00
parent 2599efc94e
commit 6542cade9f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}