mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
Fix compile with strict C flags
This commit is contained in:
parent
d4c15d2c38
commit
db9ccb40a4
1 changed files with 3 additions and 1 deletions
|
@ -56,7 +56,9 @@ static const char *csync_exclude_expand_escapes(const char * input)
|
|||
size_t i_len = strlen(input) + 1;
|
||||
char *out = c_malloc(i_len); // out can only be shorter
|
||||
|
||||
for (size_t i = 0, o = 0; i < i_len; ++i) {
|
||||
size_t i = 0;
|
||||
size_t o = 0;
|
||||
for (; i < i_len; ++i) {
|
||||
if (input[i] == '\\') {
|
||||
// at worst input[i+1] is \0
|
||||
switch (input[i+1]) {
|
||||
|
|
Loading…
Reference in a new issue