diff options
author | Garming Sam <garming@catalyst.net.nz> | 2014-02-21 15:13:58 +1300 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-05-07 19:49:16 +0200 |
commit | 45184c975853ef53c2ef0038d56df4919a4ab583 (patch) | |
tree | 7acc83706b0a3651e438ea43e172ba00ed1abd9a /lib/param/loadparm.c | |
parent | f6697ef8dab915a6d44b829112a400f757197354 (diff) | |
download | samba-45184c975853ef53c2ef0038d56df4919a4ab583.tar.gz samba-45184c975853ef53c2ef0038d56df4919a4ab583.tar.xz samba-45184c975853ef53c2ef0038d56df4919a4ab583.zip |
param: remove duplicate lp_int function
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <abartlet@samba.org>
Diffstat (limited to 'lib/param/loadparm.c')
-rw-r--r-- | lib/param/loadparm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c index f4ee64973cb..39cdae7b131 100644 --- a/lib/param/loadparm.c +++ b/lib/param/loadparm.c @@ -327,10 +327,10 @@ const char *lpcfg_get_parametric(struct loadparm_context *lp_ctx, /** * convenience routine to return int parameters. */ -static int lp_int(const char *s) +int lp_int(const char *s) { - if (!s) { + if (!s || !*s) { DEBUG(0,("lp_int(%s): is called with NULL!\n",s)); return -1; } |