SF.net SVN: geany:[3683] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sun Apr 5 14:13:57 UTC 2009


Revision: 3683
          http://geany.svn.sourceforge.net/geany/?rev=3683&view=rev
Author:   eht16
Date:     2009-04-05 14:13:56 +0000 (Sun, 05 Apr 2009)

Log Message:
-----------
Add sanity checks in ui_lookup_widget() just to be safe.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/ui_utils.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-04-03 14:48:20 UTC (rev 3682)
+++ trunk/ChangeLog	2009-04-05 14:13:56 UTC (rev 3683)
@@ -1,3 +1,9 @@
+2009-04-05  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/ui_utils.c:
+   Add sanity checks in ui_lookup_widget() just to be safe.
+
+
 2009-04-03  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
 
  * src/build.c:

Modified: trunk/src/ui_utils.c
===================================================================
--- trunk/src/ui_utils.c	2009-04-03 14:48:20 UTC (rev 3682)
+++ trunk/src/ui_utils.c	2009-04-05 14:13:56 UTC (rev 3683)
@@ -1813,6 +1813,9 @@
 {
 	GtkWidget *parent, *found_widget;
 
+	g_return_val_if_fail(widget != NULL, NULL);
+	g_return_val_if_fail(widget_name != NULL, NULL);
+
 	for (;;)
 	{
 		if (GTK_IS_MENU(widget))


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list