From ee7f1a82603a356e896f28416eed25d3c9008430 Mon Sep 17 00:00:00 2001 From: hgn <hgodden00@gmail.com> Date: Tue, 26 Dec 2023 20:23:55 +0000 Subject: [PATCH] fix small poroblems --- vg_console.h | 5 +++++ vg_input.h | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) 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<vg_console.var_count; i ++ ){ struct vg_var *cv = &vg_console.vars[i]; diff --git a/vg_input.h b/vg_input.h index cd7130d..0122c92 100644 --- a/vg_input.h +++ b/vg_input.h @@ -2,7 +2,6 @@ #ifndef VG_INPUT_H #define VG_INPUT_H -#include "common.h" #include "vg/vg_loader.h" #define VG_MAX_CONTROLLERS 4 -- 2.25.1