aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-04-15 00:58:41 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-04-15 01:03:37 -0400
commit79b10a0cfb22a2777d9e1a81689aadd90c0d5930 (patch)
tree6635a1ddb5efeb5fbcbc7d57c2f248a48e9d512a
parent28e0db583229ef618a765bc3d485605d89191abd (diff)
downloadstasis-79b10a0cfb22a2777d9e1a81689aadd90c0d5930.tar.gz
Bug fix
* Do not process cfg if no config was passed to the program.
-rw-r--r--src/deliverable.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/deliverable.c b/src/deliverable.c
index bddd5f0..aacd3d1 100644
--- a/src/deliverable.c
+++ b/src/deliverable.c
@@ -674,6 +674,9 @@ static int populate_delivery_ini(struct Delivery *ctx) {
static int populate_delivery_cfg(struct Delivery *ctx) {
union INIVal val;
struct INIFILE *cfg = ctx->_omc_ini_fp.cfg;
+ if (!cfg) {
+ return -1;
+ }
ini_getval(cfg, "default", "conda_staging_dir", INIVAL_TYPE_STR, &val);
conv_str(&ctx->storage.conda_staging_dir, val);
ini_getval(cfg, "default", "conda_staging_url", INIVAL_TYPE_STR, &val);