From: Mark Wooding Date: Sat, 20 Feb 2021 22:48:56 +0000 (+0000) Subject: lib/sod-hosted.c (sod_makev): Use two statements rather than tricky expression. X-Git-Url: https://git.distorted.org.uk/~mdw/sod/commitdiff_plain/12949379840101e2d65883f29c5e8f0f6de49e9c lib/sod-hosted.c (sod_makev): Use two statements rather than tricky expression. Comes out shorter too. --- 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)); }