Fixed wrong fallback filename bug
This commit is contained in:
parent
e32ce5add5
commit
4539df9842
@ -93,7 +93,7 @@ struct dialogue_response ask_access(const char *filename,
|
||||
perror("");
|
||||
response.decision = DENY;
|
||||
response.filename = malloc(2);
|
||||
response.filename[0] = '.';
|
||||
response.filename[0] = '/';
|
||||
response.filename[1] = 0;
|
||||
return response;
|
||||
}
|
||||
@ -106,7 +106,7 @@ struct dialogue_response ask_access(const char *filename,
|
||||
perror("Pipe returned a error");
|
||||
response.decision = DENY;
|
||||
response.filename = malloc(2);
|
||||
response.filename[0] = '.';
|
||||
response.filename[0] = '/';
|
||||
response.filename[1] = 0;
|
||||
return response;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user