fix a potential null pointer deference error
Signed-off-by: Walter Harms <wha...@bfs.de> --- src/replywait.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/replywait.c b/src/replywait.c index b25c351..91a8dd6 100644 --- a/src/replywait.c +++ b/src/replywait.c @@ -60,7 +60,8 @@ _IceAddReplyWait ( } savedReplyWait = malloc (sizeof (_IceSavedReplyWait)); - + if (!savedReplyWait) + return; savedReplyWait->reply_wait = replyWait; savedReplyWait->reply_ready = False; savedReplyWait->next = NULL; -- 2.1.4 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel