From 533cc583ed20efdfd6bee60f86d16fef3942898b Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 25 Dec 2007 16:36:44 -0600 Subject: r26596: Fixed upgrade.py. Added blackbox tests for provision and upgrade Python scripts. Clean up temporary files created by the Python tests. (This used to be commit 2227fb6df62240cae64d27a1920d878316f819fc) --- source4/param/param.i | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/param/param.i') diff --git a/source4/param/param.i b/source4/param/param.i index 375c3d0da4..353fa3ced6 100644 --- a/source4/param/param.i +++ b/source4/param/param.i @@ -59,6 +59,8 @@ typedef struct loadparm_context { bool is_myname(const char *name) { return lp_is_myname($self, name); } int use(struct param_context *param_ctx) { return param_use($self, param_ctx); } bool set(const char *parm_name, const char *parm_value) { + if (parm_value == NULL) + return false; return lp_set_cmdline($self, parm_name, parm_value); } -- cgit