aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-09-07 11:19:02 +0000
committerGerd Moellmann2001-09-07 11:19:02 +0000
commit78999117cd9ce7db469ccab4d36003c1263885ba (patch)
tree7b0535f233acc14c796b00f6355a385a3b7af0bd /src
parent9012a201f92eeb7e06904eeecb663ba0ca90cea4 (diff)
downloademacs-78999117cd9ce7db469ccab4d36003c1263885ba.tar.gz
emacs-78999117cd9ce7db469ccab4d36003c1263885ba.zip
(init_from_display_pos): Don't compare the result
of calling index with NULL.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index a683d8b0968..4f906483c93 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1840,7 +1840,7 @@ init_from_display_pos (it, w, pos)
1840 init_iterator (it, w, charpos, bytepos, NULL, DEFAULT_FACE_ID); 1840 init_iterator (it, w, charpos, bytepos, NULL, DEFAULT_FACE_ID);
1841 1841
1842 for (i = 0; i < it->n_overlay_strings; ++i) 1842 for (i = 0; i < it->n_overlay_strings; ++i)
1843 if (index (XSTRING (it->overlay_strings[i])->data, '\n') != NULL) 1843 if (index (XSTRING (it->overlay_strings[i])->data, '\n'))
1844 { 1844 {
1845 overlay_strings_with_newlines = 1; 1845 overlay_strings_with_newlines = 1;
1846 break; 1846 break;