mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-20 21:36:22 +00:00
Since the string from strerror should never be modified, use const.
This commit is contained in:
@@ -58,7 +58,7 @@ scripts_init(void)
|
||||
errno = 0;
|
||||
int res = g_mkdir_with_parents(scriptsdir, S_IRWXU);
|
||||
if (res == -1) {
|
||||
char* errmsg = strerror(errno);
|
||||
const char* errmsg = strerror(errno);
|
||||
if (errmsg) {
|
||||
log_error("Error creating directory: %s, %s", scriptsdir, errmsg);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user