1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

get_log_file_location () should return const char*

Make clear that result should never be freed.
This commit is contained in:
Michael Vetter 2020-02-21 21:19:54 +01:00
parent 75cfe38808
commit 55f49f1259
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -172,7 +172,7 @@ log_reinit(void)
free(lf);
}
char*
const char*
get_log_file_location(void)
{
return mainlogfile->str;

View File

@ -57,7 +57,7 @@ void log_init(log_level_t filter, char *log_file);
log_level_t log_get_filter(void);
void log_close(void);
void log_reinit(void);
char* get_log_file_location(void);
const char* get_log_file_location(void);
void log_debug(const char *const msg, ...);
void log_info(const char *const msg, ...);
void log_warning(const char *const msg, ...);