Since the string from strerror should never be modified, use const.

This commit is contained in:
Philipp Klaus Krause
2020-10-14 09:52:26 +02:00
parent 72ce934b58
commit 6a276e74e3
6 changed files with 6 additions and 6 deletions

View File

@@ -60,7 +60,7 @@ _get_db_filename(ProfAccount* account)
int res = g_mkdir_with_parents(database_dir, S_IRWXU);
if (res == -1) {
char* errmsg = strerror(errno);
const char* errmsg = strerror(errno);
if (errmsg) {
log_error("DATABASE: error creating directory: %s, %s", database_dir, errmsg);
} else {