summaryrefslogtreecommitdiffstats
path: root/history.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-11-10 22:14:00 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-11-10 22:14:00 +0000
commita3f726e35f1e7d918061074a85ebe7a2c7c300a5 (patch)
treed9ab2a281be2a13fbb1ec8682d4e5c7ff0502cde /history.c
parent912c6b0df82fe3a2745d68131db9300222226a73 (diff)
Introduce or rewrite mutt_{str*cmp,strlen} and use them all over the
place. If there are still segmentation faults due to missing NONULLs over, they are gone now.
Diffstat (limited to 'history.c')
-rw-r--r--history.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/history.c b/history.c
index a01cf48c..bc747db9 100644
--- a/history.c
+++ b/history.c
@@ -75,7 +75,7 @@ void mutt_history_add (history_class_t hclass, const char *s)
{
prev = h->last - 1;
if (prev < 0) prev = HistSize - 1;
- if (!h->hist[prev] || strcmp (h->hist[prev], s) != 0)
+ if (!h->hist[prev] || mutt_strcmp (h->hist[prev], s) != 0)
{
safe_free ((void **) &h->hist[h->last]);
h->hist[h->last++] = safe_strdup (s);