(init_from_display_pos): Don't compare the result

of calling index with NULL.
This commit is contained in:
Gerd Moellmann 2001-09-07 11:19:02 +00:00
parent 9012a201f9
commit 78999117cd
2 changed files with 2 additions and 2 deletions

View file

@ -1296,7 +1296,7 @@
(which-function-mode): Remove references to which-func-mode-global.
* calendar/cal-islam.el (calendar-goto-islamic-date):
Add autoload cookie.
Add autoload cookie.
* play/fortune.el: Add types to defcustoms.

View file

@ -1840,7 +1840,7 @@ init_from_display_pos (it, w, pos)
init_iterator (it, w, charpos, bytepos, NULL, DEFAULT_FACE_ID);
for (i = 0; i < it->n_overlay_strings; ++i)
if (index (XSTRING (it->overlay_strings[i])->data, '\n') != NULL)
if (index (XSTRING (it->overlay_strings[i])->data, '\n'))
{
overlay_strings_with_newlines = 1;
break;