From b1b3c980374009b745adaa0f864f9afdf1a2df96 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Thu, 27 Nov 2014 22:06:12 -0500 Subject: uggh, more compiler warnings --- expac.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'expac.c') 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; } -- cgit v1.2.3-54-g00ecf