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