From 55f49f12593d1c91c41e35fae56885e088ee4c6e Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 21 Feb 2020 21:19:54 +0100 Subject: get_log_file_location () should return const char* Make clear that result should never be freed. --- src/command/cmd_funcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/command') diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index f0468cdd..93b37c30 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -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; } -- cgit