From a2512fa639d23c62104e38e2e125f538c325fc72 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sun, 26 Feb 2023 11:21:24 +0100 Subject: [PATCH] Avoid another possible null pointer dereference * modified: tests/output/tex-strings.c --- tests/output/tex-strings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/output/tex-strings.c b/tests/output/tex-strings.c index 71aed14307..acc2479ce4 100644 --- a/tests/output/tex-strings.c +++ b/tests/output/tex-strings.c @@ -108,7 +108,7 @@ main (int argc, char **argv) } } - if (optind >= argc) + if (!outfile || optind >= argc) { fprintf (stderr, "Usage: tex-strings -o ... \n"); return 1; -- 2.30.2