cleanup: be a bit more defensive in

This commit is contained in:
Michael Vetter
2026-02-27 21:24:21 +01:00
parent 7b0232c11c
commit 7876645cb0

View File

@@ -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, '"')) {