diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-03-05 16:07:48 -0500 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-03-05 16:07:48 -0500 |
| commit | 5e8a352e11497ee1e6735f69acc72f72a833fe63 (patch) | |
| tree | 40bf4c5f4f511b8090e341e6f10c0ba7bf2fd0bf /src | |
| parent | f234b169b7e03c859c6bc7f4dc18a77bd888bb09 (diff) | |
| download | stasis-5e8a352e11497ee1e6735f69acc72f72a833fe63.tar.gz | |
Return from function on failure to read, instead of exiting the program
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/delivery/delivery_populate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/delivery/delivery_populate.c b/src/lib/delivery/delivery_populate.c index de310d1..11be8ad 100644 --- a/src/lib/delivery/delivery_populate.c +++ b/src/lib/delivery/delivery_populate.c @@ -375,7 +375,7 @@ int populate_mission_ini(struct Delivery **ctx, int render_mode) { struct INIFILE *ini = (*ctx)->_stasis_ini_fp.mission; if (!ini) { msg(STASIS_MSG_ERROR | STASIS_MSG_L2, "Failed to read mission configuration: %s, %s\n", missionfile, strerror(errno)); - exit(1); + return -1; } (*ctx)->_stasis_ini_fp.mission_path = strdup(missionfile); |
