]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Fix the file name reported in a write error message
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Sat, 25 Apr 2015 19:30:05 +0000 (21:30 +0200)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Sat, 25 Apr 2015 19:30:05 +0000 (21:30 +0200)
An error message when closing a file was not reporting the right file name.

useragent.c

index 8ea1140b3e555192ac73b9dd5ec4b44d4532dc9d..be40754d654ad3da46f65c542f849f6517e73c01 100644 (file)
@@ -280,7 +280,7 @@ void useragent(void)
        agentot2+=agentot;
 
        if (fclose(fp_ou)==EOF) {
-               debuga(_("Write error in \"%s\": %s\n"),tmp3,strerror(errno));
+               debuga(_("Write error in \"%s\": %s\n"),tmp2,strerror(errno));
                exit(EXIT_FAILURE);
        }
        if (fclose(fp_in)==EOF) {