summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-11-27 22:06:12 -0500
committerDave Reisner <dreisner@archlinux.org>2014-11-27 22:06:12 -0500
commitb1b3c980374009b745adaa0f864f9afdf1a2df96 (patch)
tree20fc8dc51ca566e0ec687b4ae44b4b328a306649
parent41725289827500e8055014cd6126af877022dbaa (diff)
downloadexpac-b1b3c980374009b745adaa0f864f9afdf1a2df96.tar.xz
uggh, more compiler warningsHEADmaster
-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;
}