about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrey Alekseenko <al42and@gmail.com>2023-12-08 20:09:56 +0100
committerLeah Neukirchen <leah@vuxu.org>2023-12-08 21:47:16 +0100
commita10b4bb71135cf49ba1dbc581b095a4105220529 (patch)
tree0641f0cc72051f04930a9d3340919cd5df823b77
parent3358eacb7fc6797629ffa99513653df57ad8c61e (diff)
downloadxe-master.tar.gz
xe-master.tar.xz
xe-master.zip
pusharg: properly check realloc return value HEAD master
-rw-r--r--xe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xe.c b/xe.c
index 804833c..8bae099 100644
--- a/xe.c
+++ b/xe.c
@@ -190,7 +190,7 @@ pusharg(const char *a)
 		while (buflen + l > bufcap)
 			bufcap *= 2;
 		buf = realloc(buf, bufcap);
-		if (!args)
+		if (!buf)
 			exit(1);
 	}