diff options
Diffstat (limited to 'libopkg/opkg.c')
-rw-r--r-- | libopkg/opkg.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libopkg/opkg.c b/libopkg/opkg.c index d7948e9..785d588 100644 --- a/libopkg/opkg.c +++ b/libopkg/opkg.c @@ -190,13 +190,7 @@ opkg_new () opkg = xcalloc(1, sizeof (opkg_t)); opkg->args = xcalloc(1, sizeof (args_t)); - err = args_init (opkg->args); - if (err) - { - free (opkg->args); - free (opkg); - return NULL; - } + args_init (opkg->args); opkg->conf = xcalloc(1, sizeof (opkg_conf_t)); err = opkg_conf_init (opkg->conf, opkg->args); |