Subject: coredump in FindBuiltinFunction

From: Dominik Vogt <[email-masked]>
Date: Sun, 17 Jan 1999 13:18:07 +0100

--- ChangeLog.orig	Sun Jan 17 13:13:49 1999
+++ ChangeLog	Sun Jan 17 13:14:43 1999
@@ -1,3 +1,8 @@
+1999-01-17  Dominik Vogt  <[email-masked]>
+
+	* fvwm/functions.c (FindBuiltinFunction): fixed coredump when passed
+	a NULL pointer
+
 1999-01-16  Steven Michael ROBBINS  <[email-masked]>
 
 	* configure.in: Nuke cached values before retrying check for
--- fvwm/functions.c.orig	Sun Jan 17 13:13:28 1999
+++ fvwm/functions.c	Sun Jan 17 13:13:11 1999
@@ -188,6 +188,9 @@
 {
   static int func_config_size=0;
 
+  if (!func || func[0] == 0)
+    return NULL;
+
   if (!func_config_size)
   {
     /* remove finial NULL entry from size */