mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-20 05:32:14 +00:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user