innfeed.conf: NULL key?

Katsuhiro Kondou kondou at nec.co.jp
Thu Nov 25 15:37:44 UTC 1999


In article <Pine.BSF.4.10.9911251120180.63896-100000 at thelab.hub.org>,
	The Hermit Hacker <scrappy at hub.org> wrote;

} Still searching for it, but so far everything looks like that which is in
} the site directory...just a "simple request"  add a line number for where
} the error is, siimilar to newsfeeds?

How about attached?  I'll commit if it's ok.
-- 
Katsuhiro Kondou


--- innfeed/configfile.y.orig	Sun Nov 21 10:00:32 1999
+++ innfeed/configfile.y	Fri Nov 26 00:35:26 1999
@@ -587,9 +587,17 @@
   char *rval ;
 
   if (key == NULL)
-    return strdup ("NULL key") ;
+    {
+      rval = malloc (strlen ("line : NULL key") + 15) ;
+      sprintf (rval,"line %d: NULL key", lineCount) ;
+      return rval ;
+    }
   else if (*key == '\0')
-    return strdup ("EMPTY KEY") ;
+    {
+      rval = malloc (strlen ("line : EMPTY KEY") + 15) ;
+      sprintf (rval,"line %d: EMPTY KEY", lineCount) ;
+      return rval ;
+    }
   
   if (!isalpha(*p))
     {


More information about the inn-workers mailing list