summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2013-09-21 18:27:02 +0200
committerDaniel Carl <danielcarl@gmx.de>2013-09-21 18:27:02 +0200
commit55f9e04485a5978eb5040203cf6ef9c39c7593aa (patch)
tree8ad2f313dfa57faed9f69c59f2d8d85304be20f0 /src/util.c
parentd14b54356e8d07f18a7d829a7c9e100f39d336ff (diff)
Cleaned the code a little.
Remove already solved tasks and changed most of the *var == '\0' into !*var expressions.
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index f3cb2df..f468da7 100644
--- a/src/util.c
+++ b/src/util.c
@@ -131,7 +131,7 @@ GList *util_file_to_unique_list(const char *filename, Util_Content_Func func,
for (int i = len - 1; i >= 0; i--) {
line = lines[i];
g_strstrip(line);
- if (*line == '\0') {
+ if (!*line) {
continue;
}