From: hgn Date: Tue, 26 Dec 2023 20:23:55 +0000 (+0000) Subject: fix small poroblems X-Git-Url: https://harrygodden.com/git/?p=vg.git;a=commitdiff_plain;h=ee7f1a82603a356e896f28416eed25d3c9008430 fix small poroblems --- diff --git a/vg_console.h b/vg_console.h index d7f7f9f..3112cde 100644 --- a/vg_console.h +++ b/vg_console.h @@ -214,6 +214,11 @@ static void vg_console_load_autos(void){ static void _vg_console_write_persistent(void){ FILE *fp = fopen( "cfg/auto.conf", "w" ); + + if( !fp ){ + vg_error( "Cannot open cfg/auto.conf\n" ); + return; + } for( int i=0; i