diff options
Diffstat (limited to 'logger.c')
-rwxr-xr-x | logger.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |