commit: cafb90f3ff97838f1174cc66a90809055ef1a564
parent 68093027341c3b5d7c7d27da27d6e863639fd02d
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 22 Sep 2025 04:50:48 +0200
cmd/join.c: assert on lp pointer
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/cmd/join.c b/cmd/join.c
@@ -40,6 +40,7 @@
#include "../libutils/err.h"
#include "../libutils/getopt_nolong.h"
+#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <locale.h>
@@ -319,6 +320,7 @@ slurp(INPUT *F)
* level of indirection, but it's probably okay as is.
*/
lp = &F->set[F->setcnt];
+ assert(lp);
if(F->setcnt) lastlp = &F->set[F->setcnt - 1];
if(F->pushbool)
{