run: Fix segfault on error accessing directory in path

v2: styling changes
v3: Fix email formatting
v4: correct inverted pointer check
This commit is contained in:
Matt Coffin 2020-01-28 20:17:42 -07:00
parent 786718602b
commit 3693e89739

View File

@ -85,6 +85,9 @@ void wofi_run_init(struct mode* this, struct map* config) {
do {
str = realpath(str, NULL);
if(str == NULL) {
continue;
}
if(map_contains(paths, str)) {
free(str);
continue;