get_log_file_location () should return const char*
Make clear that result should never be freed.
This commit is contained in:
@@ -6320,7 +6320,7 @@ cmd_log(ProfWin *window, const char *const command, gchar **args)
|
||||
}
|
||||
|
||||
if (strcmp(subcmd, "where") == 0) {
|
||||
char *logfile = get_log_file_location();
|
||||
const char *logfile = get_log_file_location();
|
||||
cons_show("Log file: %s", logfile);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user