From: David Lawrence Ramsey Date: Sun, 8 May 2005 17:08:51 +0000 (+0000) Subject: another cosmetic fix X-Git-Tag: v1.3.8~297 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7f4dd35406b79b5c1d7aa695b2b96d366773c9fa;p=nano.git another cosmetic fix git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2503 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/search.c b/src/search.c index ac8888e8..b7210b26 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; }