Commit 87947a97 authored by npzacs's avatar npzacs

Check for NULL

parent 924f4a25
......@@ -98,6 +98,9 @@ const char *file_get_config_system(const char *dir)
if (xdg_sys && *xdg_sys) {
dirs = calloc(1, strlen(xdg_sys) + 2);
if (!dirs) {
return NULL;
}
strcpy(dirs, xdg_sys);
char *pt = dirs;
......
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