about summary refs log tree commit diff stats
path: root/src/command/cmd_funcs.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-02-21 21:19:54 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-02-21 21:19:54 +0100
commit55f49f12593d1c91c41e35fae56885e088ee4c6e (patch)
tree5b38b8d9abbb305a7ea7b17869f234f110f8bcfa /src/command/cmd_funcs.c
parent75cfe38808e76a5308dac7023876a9826ed56347 (diff)
downloadprofani-tty-55f49f12593d1c91c41e35fae56885e088ee4c6e.tar.gz
get_log_file_location () should return const char*
Make clear that result should never be freed.
Diffstat (limited to 'src/command/cmd_funcs.c')
-rw-r--r--src/command/cmd_funcs.c2
1 files changed, 1 insertions, 1 deletions
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;
     }