diff options
Diffstat (limited to 'src/deliverable.c')
| -rw-r--r-- | src/deliverable.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/deliverable.c b/src/deliverable.c index 72b2e53..3420716 100644 --- a/src/deliverable.c +++ b/src/deliverable.c @@ -16,7 +16,8 @@ extern struct OMC_GLOBAL globals;      }  #define getter_required(XINI, SECTION_NAME, KEY, TYPE) \      { \ -        if (ini_getval(XINI, SECTION_NAME, KEY, TYPE, &val)) { \ +        int status = ini_getval(XINI, SECTION_NAME, KEY, TYPE, &val); \ +        if (status || isempty(val.as_char_p)) { \              fprintf(stderr, "%s:%s is required but not defined\n", SECTION_NAME, KEY); \              return -1;\          } \ | 
