summaryrefslogtreecommitdiff
path: root/src/caja-query-editor.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-03-28 12:30:51 +0300
committermonsta <[email protected]>2017-03-28 12:32:47 +0300
commite3953e675e45d59ae0ef720e4bf65ea6bab97fb4 (patch)
tree155784f3dc352fe544077a8817bcd4dd368168cb /src/caja-query-editor.c
parent96fdd4f17237dc55be5e2a9cde5a20a23ce53086 (diff)
downloadcaja-e3953e675e45d59ae0ef720e4bf65ea6bab97fb4.tar.bz2
caja-e3953e675e45d59ae0ef720e4bf65ea6bab97fb4.tar.xz
fix build with gcc 4.9.2 (looks like it's in c89 mode by default)
Diffstat (limited to 'src/caja-query-editor.c')
-rw-r--r--src/caja-query-editor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/caja-query-editor.c b/src/caja-query-editor.c
index 5bfbf7ae..bb0f6036 100644
--- a/src/caja-query-editor.c
+++ b/src/caja-query-editor.c
@@ -412,7 +412,9 @@ tags_row_add_to_query (CajaQueryEditorRow *row,
char **strv = g_strsplit (tags, " ", -1);
guint len = g_strv_length (strv);
- for (int i=0; i<len; ++i) {
+ int i;
+
+ for (i = 0; i < len; ++i) {
strv[i] = g_strstrip (strv[i]);
if (strlen (strv[i]) > 0) {
caja_query_add_tag (query, strv[i]);