Skip to content

Commit

Permalink
Fix_segfault_on_first_run_as_non_root
Browse files Browse the repository at this point in the history
Incorrectly trying to close a uninitialised file
pointer stream when the file could not be opened.
  • Loading branch information
PartialVolume committed Nov 2, 2023
1 parent 2c17e32 commit 499ad92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ int nwipe_conf_init()
{
nwipe_log( NWIPE_LOG_ERROR, "Failed to write basic config to %s", nwipe_customers_file );
}
fclose( fp_customers );
}
fclose( fp_customers );
}
return ( 0 );
}
Expand Down

0 comments on commit 499ad92

Please sign in to comment.