summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
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 1f6fd41..9bf5833 100644
--- a/src/util.c
+++ b/src/util.c
@@ -10,7 +10,7 @@ cmumble_find_by_id(GList *list, gsize member_offset, guint id)
gpointer el = NULL;
GList *l;
- for (l = list; l; l = l->next) {
+ for (l = list; l != NULL; l = l->next) {
if (G_STRUCT_MEMBER(uint32_t, l->data, member_offset) == id) {
el = l->data;
break;