From 55dfa4b086adb7fb28881a04099846fdf9c78b2c Mon Sep 17 00:00:00 2001 From: Paul Dino Jones Date: Sun, 8 Sep 2024 18:44:21 -0400 Subject: [PATCH] Do not compare car if it is null --- src/monocoque/helper/confighelper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monocoque/helper/confighelper.c b/src/monocoque/helper/confighelper.c index 575480e..4aa315c 100644 --- a/src/monocoque/helper/confighelper.c +++ b/src/monocoque/helper/confighelper.c @@ -216,7 +216,7 @@ int getconfigtouse(const char* config_file_str, char* car, int sim) slogt("checking if car is matched %i", j); temp = NULL; found = config_setting_lookup_string(config_config, "car", &temp); - if(temp != NULL && found > 0) + if(temp != NULL && found > 0 && car != NULL) { if(strcicmp(temp, car) == 0) {