diff --git a/src/search.c b/src/search.c index ac8888e8a397d8b72c859af089eb1a368150910c..b7210b2600d9067d1d9e10ed0f59923a1d9ce48d 100644 --- a/src/search.c +++ b/src/search.c @@ -1150,9 +1150,10 @@ void history_init(void) /* find first node containing string *s in history list *h */ historytype *find_node(historytype *h, const char *s) { - for (; h->next != NULL; h = h->next) + for (; h->next != NULL; h = h->next) { if (strcmp(s, h->data) == 0) return h; + } return NULL; }