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