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 {
|
do {
|
||||||
|
|
||||||
str = realpath(str, NULL);
|
str = realpath(str, NULL);
|
||||||
|
if(str == NULL) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if(map_contains(paths, str)) {
|
if(map_contains(paths, str)) {
|
||||||
free(str);
|
free(str);
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user