diff --git a/src/ckpool.h b/src/ckpool.h index 4d8d69c6..f33b6020 100644 --- a/src/ckpool.h +++ b/src/ckpool.h @@ -111,7 +111,7 @@ ckpool_t *global_ckp; int process_exit(ckpool_t *ckp, proc_instance_t *pi, int ret); #define ASPRINTF(strp, fmt, ...) do { \ - if (unlikely(asprintf(strp, fmt, ##__VA_ARGS__))) \ + if (unlikely(asprintf(strp, fmt, ##__VA_ARGS__) < 0)) \ quitfrom(1, __FILE__, __func__, __LINE__, "Failed to asprintf"); \ } while (0)