Commit 5fbde209 authored by Jim Meyering's avatar Jim Meyering Committed by David Zeuthen
Browse files

handle kit_strdup failure.



* tools/polkit-policy-file-validate.c (validate_file):
Signed-off-by: default avatarJim Meyering <meyering@redhat.com>
Signed-off-by: default avatarDavid Zeuthen <davidz@redhat.com>
parent 038354db
......@@ -99,7 +99,8 @@ validate_file (const char *file)
basename++;
else
basename = file;
prefix = kit_strdup (basename);
if ((prefix = kit_strdup (basename)) == NULL)
goto out;
/* strip out "policy" - retain the dot */
prefix [strlen (prefix) - 6] = '\0';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment