diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-02-21 21:19:54 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-02-21 21:19:54 +0100 |
commit | 55f49f12593d1c91c41e35fae56885e088ee4c6e (patch) | |
tree | 5b38b8d9abbb305a7ea7b17869f234f110f8bcfa /src/command | |
parent | 75cfe38808e76a5308dac7023876a9826ed56347 (diff) | |
download | profani-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')
-rw-r--r-- | src/command/cmd_funcs.c | 2 |
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; } |