This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project wmaker-crm.git.
The branch, next has been updated
via 2be53e92e671244e13353613941fb638bd29e728 (commit)
from 96800cdc1652b3f30e17cc069396baeebb4b407e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/wmaker-crm.git/commit/2be53e92e671244e13353613941fb638bd29e728
commit 2be53e92e671244e13353613941fb638bd29e728
Author: Alexey I. Froloff <[email protected]>
Date: Wed Jun 20 16:06:26 2012 +0400
WMPopFromArray(): avoid underflow
Signed-off-by: Alexey I. Froloff <[email protected]>
diff --git a/WINGs/array.c b/WINGs/array.c
index ff1fe7b..ae1e17c 100644
--- a/WINGs/array.c
+++ b/WINGs/array.c
@@ -198,6 +198,9 @@ void *WMGetFromArray(WMArray * array, int index)
void *WMPopFromArray(WMArray * array)
{
+ if (array->itemCount <= 0)
+ return NULL;
+
array->itemCount--;
return array->items[array->itemCount];
-----------------------------------------------------------------------
Summary of changes:
WINGs/array.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
repo.or.cz automatic notification. Contact project admin [email protected]
if you want to unsubscribe, or site admin [email protected] if you receive
no reply.
--
wmaker-crm.git ("The Window Maker window manager")
--
To unsubscribe, send mail to [email protected].