1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Silence down a warning that would appear on "/away" in Capability mode.

This commit is contained in:
Edward Tomasz Napierala 2017-10-11 23:52:36 +01:00
parent 5c0b4aeb05
commit 9895e7b28a

View File

@ -183,6 +183,10 @@ void capsicum_mkdir_with_parents(const char *path, int mode)
char *component, *copy, *tofree; char *component, *copy, *tofree;
int error, fd, newfd; int error, fd, newfd;
/* The directory already exists, nothing to do. */
if (strcmp(path, irclogs_path) == 0)
return;
/* +1 is for the slash separating irclogs_path and the rest. */ /* +1 is for the slash separating irclogs_path and the rest. */
if (strlen(path) <= irclogs_path_len + 1 || if (strlen(path) <= irclogs_path_len + 1 ||
path[irclogs_path_len] != '/' || path[irclogs_path_len] != '/' ||