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:
parent
5c0b4aeb05
commit
9895e7b28a
@ -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] != '/' ||
|
||||||
|
Loading…
Reference in New Issue
Block a user