diff options
author | Dave Reisner <dreisner@archlinux.org> | 2014-11-27 22:06:12 -0500 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2014-11-27 22:06:12 -0500 |
commit | b1b3c980374009b745adaa0f864f9afdf1a2df96 (patch) | |
tree | 20fc8dc51ca566e0ec687b4ae44b4b328a306649 | |
parent | 41725289827500e8055014cd6126af877022dbaa (diff) | |
download | expac-master.tar.xz |
-rw-r--r-- | expac.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -120,7 +120,9 @@ static char *format_optdep(alpm_depend_t *optdep) { char *out = NULL; - asprintf(&out, "%s: %s", optdep->name, optdep->desc); + if(asprintf(&out, "%s: %s", optdep->name, optdep->desc) < 0) { + return NULL; + } return out; } |