aboutsummaryrefslogtreecommitdiffstats
path: root/logger.c
diff options
context:
space:
mode:
Diffstat (limited to 'logger.c')
-rwxr-xr-xlogger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/logger.c b/logger.c
index a0f5dac12..91c2743d4 100755
--- a/logger.c
+++ b/logger.c
@@ -231,7 +231,7 @@ int reload_logger(int rotate)
for(x=0;;x++) {
snprintf(new, sizeof(new), "%s/%s.%d", (char *)ast_config_AST_LOG_DIR,f->fn,x);
myf = fopen((char *)new, "r");
- if(f)
+ if(myf)
fclose(myf);
else
break;