X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/342d5d1d830b7cd5c88d61ba52836f6c59299f9a..12949379840101e2d65883f29c5e8f0f6de49e9c:/lib/sod-hosted.c 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)); }