summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg')
-rw-r--r--libopkg/args.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libopkg/args.c b/libopkg/args.c
index 495f1a8..564e05c 100644
--- a/libopkg/args.c
+++ b/libopkg/args.c
@@ -49,6 +49,9 @@ int args_init(args_t *args)
{
char *conf_file_dir;
+ if (!args) {
+ return EFAULT;
+ }
memset(args, 0, sizeof(args_t));
args->dest = ARGS_DEFAULT_DEST;
@@ -78,7 +81,7 @@ int args_init(args_t *args)
args->nocheckfordirorfile = 0;
args->noreadfeedsfile = 0;
- return 1;
+ return 0;
}
void args_deinit(args_t *args)