projects
/
projects
/
chimara
/
chimara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed crash in VALID_MAGIC with NULL object
[projects/chimara/chimara.git]
/
libchimara
/
window.c
diff --git
a/libchimara/window.c
b/libchimara/window.c
index 80aee2f7b07de1d00cae7a43bd0e4c002b6ea030..5a194f4572bfc3fc62a0a7aaaa4854737f6d0209 100644
(file)
--- a/
libchimara/window.c
+++ b/
libchimara/window.c
@@
-202,8
+202,8
@@
glk_window_get_sibling(winid_t win)
if(G_NODE_IS_ROOT(win->window_node))
return NULL;
if(win->window_node->next)
if(G_NODE_IS_ROOT(win->window_node))
return NULL;
if(win->window_node->next)
- return (winid_t)win->window_node->next;
- return (winid_t)win->window_node->prev;
+ return (winid_t)win->window_node->next
->data
;
+ return (winid_t)win->window_node->prev
->data
;
}
/**
}
/**