X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_console.h;fp=vg_console.h;h=3112cde10ea7a86383a75eb2f00d0a17ca052d5c;hb=ee7f1a82603a356e896f28416eed25d3c9008430;hp=d7f7f9f3e030452a75e85f29ddb5eeef09200f76;hpb=9578dfc2859abc101f78c02c271aae44b351abca;p=vg.git 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