diff options
Diffstat (limited to 'expac.c')
-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; } |