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