ports/net/gtk+licq/files/patch-src::functions.cpp
Peter Pentchev 181f39b885 Add a new patch (which seems to avoid a null pointer dereference).
Bump PORTREVISION accordingly.
Change the port maintainer.

PR:		27536
Submitted by:	both former and new maintainers :)
2001-05-22 17:03:11 +00:00

15 lines
309 B
C++

--- src/functions.cpp 2001/04/23 21:07:27 1.97
+++ src/functions.cpp 2001/05/17 08:34:51 1.98
@@ -989,7 +989,11 @@
{
unsigned long *uinptr;
GtkWidget *parent=NULL;
-
+
+ if (widget == NULL) {
+ return(0);
+ }
+
for (;;)
{
if (GTK_IS_MENU (widget)) {