summaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index d2540b1..21ff0bc 100644
--- a/src/options.c
+++ b/src/options.c
@@ -132,6 +132,9 @@ int options_parse(options_t** opt, int argc, char* argv[])
return -1;
*opt = malloc(sizeof(options_t));
+ if(!*opt)
+ return -1;
+
options_default(*opt);
if((*opt)->progname_)