From 7876645cb0eac3c714fc4030a19bad89f5e737d1 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 27 Feb 2026 21:24:21 +0100 Subject: [PATCH] cleanup: be a bit more defensive in --- src/common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common.c b/src/common.c index c52670d1..42b47596 100644 --- a/src/common.c +++ b/src/common.c @@ -543,6 +543,9 @@ char* strip_arg_quotes(const char* const input) { char* unquoted = strdup(input); + if (unquoted == NULL) { + return NULL; + } // Remove starting quote if it exists if (strchr(unquoted, '"')) {