diff options
author | Gerd Moellmann <gerd@gnu.org> | 2001-09-07 11:19:02 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2001-09-07 11:19:02 +0000 |
commit | 78999117cd9ce7db469ccab4d36003c1263885ba (patch) | |
tree | 7b0535f233acc14c796b00f6355a385a3b7af0bd /src | |
parent | 9012a201f92eeb7e06904eeecb663ba0ca90cea4 (diff) | |
download | emacs-78999117cd9ce7db469ccab4d36003c1263885ba.tar.gz |
(init_from_display_pos): Don't compare the result
of calling index with NULL.
Diffstat (limited to 'src')
-rw-r--r-- | src/xdisp.c | 2 |
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) 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; |