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:
parent
786718602b
commit
3693e89739
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user