From: Robert Spalek Date: Mon, 14 Jan 2002 19:38:41 +0000 (+0000) Subject: empty section of configuration item forbidden X-Git-Tag: holmes-import~1451 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=50ac264bf0e983a5b009c6d11dcc4f0703edab4b;p=libucw.git empty section of configuration item forbidden --- diff --git a/lib/conf.c b/lib/conf.c index 3f79fc22..98c34b56 100644 --- a/lib/conf.c +++ b/lib/conf.c @@ -85,6 +85,8 @@ byte *cf_set_item(byte *sect, byte *name, byte *value) struct cfitem *item; byte *msg=NULL; + if (!*sect) + return "Empty section name"; item=cf_get_item(sect,name); if(!item) /* ignore unknown section */ return NULL;