summaryrefslogtreecommitdiffstats
path: root/expac.c
diff options
context:
space:
mode:
Diffstat (limited to 'expac.c')
-rw-r--r--expac.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/expac.c b/expac.c
index 1039e34..a87f0e0 100644
--- a/expac.c
+++ b/expac.c
@@ -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;
}