projects
/
sxemacs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dab98df
)
Coverity: Missing return: CID 606
author
Nelson Ferreira
<nelson.ferreira@ieee.org>
Sat, 21 Jan 2012 03:13:23 +0000
(22:13 -0500)
committer
Nelson Ferreira
<nelson.ferreira@ieee.org>
Sat, 21 Jan 2012 03:13:23 +0000
(22:13 -0500)
* src/ui/window.c (window_display_buffer): Return NULL for the
fatal crash scenario.
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
src/ui/window.c
patch
|
blob
|
history
diff --git
a/src/ui/window.c
b/src/ui/window.c
index
8ee614b
..
d679d38
100644
(file)
--- a/
src/ui/window.c
+++ b/
src/ui/window.c
@@
-581,9
+581,11
@@
struct buffer *window_display_buffer(struct window *w)
if (XFRAME(w->frame)->mirror_dirty)
update_frame_window_mirror(XFRAME(w->frame));
t = find_window_mirror(w);
- if (!t)
+ if (!t)
+ {
abort();
- else
+ return NULL;
+ } else
return t->buffer;
}