From 12949379840101e2d65883f29c5e8f0f6de49e9c Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 20 Feb 2021 22:48:56 +0000 Subject: [PATCH] lib/sod-hosted.c (sod_makev): Use two statements rather than tricky expression. Comes out shorter too. --- lib/sod-hosted.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sod-hosted.c b/lib/sod-hosted.c index 5b6e378..32aabec 100644 --- a/lib/sod-hosted.c +++ b/lib/sod-hosted.c @@ -100,7 +100,7 @@ void *sod_makev(const SodClass *cls, va_list ap) { void *p; - if ((p = malloc(cls->cls.initsz)) == 0) return (0); + p = malloc(cls->cls.initsz); if (!p) return (0); return (sod_initv(cls, p, ap)); } -- 2.11.0