summaryrefslogtreecommitdiff
path: root/src/completion.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2011-03-18 01:19:46 +0100
committerportix <portix@gmx.net>2011-03-18 01:19:46 +0100
commit740c646e7d3e7d8d32a9afd93b584211131a956c (patch)
tree911b803299bc7946e1e5d49e44df2c637a4f1407 /src/completion.c
parentd354455a9da13b1454ba12d23302880f632987e2 (diff)
downloaddwb-740c646e7d3e7d8d32a9afd93b584211131a956c.zip
Removed 2 strlen calls
Diffstat (limited to 'src/completion.c')
-rw-r--r--src/completion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/completion.c b/src/completion.c
index ffcefa9b..7f03bcca 100644
--- a/src/completion.c
+++ b/src/completion.c
@@ -453,7 +453,7 @@ dwb_comp_get_path(GList *list, char *text) {
const char *filename;
char path[BUFFER_LENGTH];
- if (!strlen(text)) {
+ if (! *text ) {
list = g_list_prepend(list, g_strconcat(d_current, "/", NULL));
return list;
}