Fix_segfault_on_first_run_as_non_root

Incorrectly trying to close a uninitialised file
pointer stream when the file could not be opened.
This commit is contained in:
PartialVolume
2023-11-02 19:47:53 +00:00
parent 2c17e32189
commit 499ad925ae

View File

@@ -186,8 +186,8 @@ int nwipe_conf_init()
{ {
nwipe_log( NWIPE_LOG_ERROR, "Failed to write basic config to %s", nwipe_customers_file ); nwipe_log( NWIPE_LOG_ERROR, "Failed to write basic config to %s", nwipe_customers_file );
} }
fclose( fp_customers );
} }
fclose( fp_customers );
} }
return ( 0 ); return ( 0 );
} }