diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-07-13 12:19:39 -0400 | 
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-07-13 12:19:39 -0400 | 
| commit | 6f2d18e0b8b15a4ab2066baee9b0ed3aedf4edf8 (patch) | |
| tree | 2869c88ea77a8622bf15e62326cf62b237ee0bed /src | |
| parent | ec60f5f315683123baa6f07f0390c1ef501d7b3d (diff) | |
| download | stasis-6f2d18e0b8b15a4ab2066baee9b0ed3aedf4edf8.tar.gz | |
Exit program when pointer to INIFILE is NULL.
* Validation function cannot otherwise proceed
Diffstat (limited to 'src')
| -rw-r--r-- | src/delivery.c | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/src/delivery.c b/src/delivery.c index 7bedef3..11c5581 100644 --- a/src/delivery.c +++ b/src/delivery.c @@ -420,6 +420,10 @@ static int populate_mission_ini(struct Delivery **ctx) {  }  void validate_delivery_ini(struct INIFILE *ini) { +    if (!ini) { +        SYSERROR("%s", "INIFILE is NULL!"); +        exit(1); +    }      if (ini_section_search(&ini, INI_SEARCH_EXACT, "meta")) {          ini_has_key_required(ini, "meta", "name");          ini_has_key_required(ini, "meta", "version");  | 
