diff src/abbrev.c @ 42410:cd63104dd575

* abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero comparison to test lisp value returned by Fget.
author Ken Raeburn <raeburn@raeburn.org>
date Sat, 29 Dec 2001 21:42:22 +0000
parents b46d482b6ed2
children b6abb8a7ea89 aac41b50c875
line wrap: on
line diff
--- a/src/abbrev.c	Sat Dec 29 20:31:31 2001 +0000
+++ b/src/abbrev.c	Sat Dec 29 21:42:22 2001 +0000
@@ -331,7 +331,7 @@
   if (INTEGERP (XSYMBOL (sym)->plist))
     XSETINT (XSYMBOL (sym)->plist,
 	     XINT (XSYMBOL (sym)->plist) + 1);
-  else if (tem = Fget (sym, Qcount))
+  else if (!NILP (tem = Fget (sym, Qcount)))
     Fput (sym, Qcount, make_number (XINT (tem) + 1));
 
   /* If this abbrev has an expansion, delete the abbrev