mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-30 06:56:21 +00:00
cleanup: be a bit more defensive in
This commit is contained in:
@@ -543,6 +543,9 @@ char*
|
|||||||
strip_arg_quotes(const char* const input)
|
strip_arg_quotes(const char* const input)
|
||||||
{
|
{
|
||||||
char* unquoted = strdup(input);
|
char* unquoted = strdup(input);
|
||||||
|
if (unquoted == NULL) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// Remove starting quote if it exists
|
// Remove starting quote if it exists
|
||||||
if (strchr(unquoted, '"')) {
|
if (strchr(unquoted, '"')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user