mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
Silence down a warning that would appear on "/away" in Capability mode.
This commit is contained in:
parent
5c0b4aeb05
commit
9895e7b28a
1 changed files with 4 additions and 0 deletions
|
|
@ -183,6 +183,10 @@ void capsicum_mkdir_with_parents(const char *path, int mode)
|
|||
char *component, *copy, *tofree;
|
||||
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. */
|
||||
if (strlen(path) <= irclogs_path_len + 1 ||
|
||||
path[irclogs_path_len] != '/' ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue