summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a75a9be)
raw | patch | inline | side by side (parent: a75a9be)
author | Max Kellermann <max@duempel.org> | |
Fri, 2 Oct 2009 17:22:15 +0000 (19:22 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Fri, 2 Oct 2009 17:22:15 +0000 (19:22 +0200) |
strrstr() is more expensive, and we're just interested in whether
there is a colon, not where.
there is a colon, not where.
src/screen_search.c | patch | blob | history |
diff --git a/src/screen_search.c b/src/screen_search.c
index 9f2fee13f0861aaa31cd46b2c26d5f5827af7d35..b1d480ddb207c3fb3e4bde5b42b9befbd88c15d5 100644 (file)
--- a/src/screen_search.c
+++ b/src/screen_search.c
struct filelist *fl = NULL;
advanced_search_mode = FALSE;
- if( g_strrstr(query, ":") == NULL )
+ if (strchr(query, ':') == NULL)
return NULL;
strv = g_strsplit_set(query, ": ", 0);