projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4c15d2
)
Fix compile with strict C flags
author
Christian Kamm
<mail@ckamm.de>
Fri, 18 Mar 2016 11:41:57 +0000
(12:41 +0100)
committer
Markus Goetz
<markus@woboq.com>
Thu, 12 May 2016 11:14:40 +0000
(13:14 +0200)
csync/src/csync_exclude.c
patch
|
blob
|
history
diff --git
a/csync/src/csync_exclude.c
b/csync/src/csync_exclude.c
index 49649464db16635057e69b1bccece6538a8fee17..d13949a61e27354b5066573fd279c10321cb197b 100644
(file)
--- a/
csync/src/csync_exclude.c
+++ b/
csync/src/csync_exclude.c
@@
-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]) {