From: Garming Sam Date: Fri, 22 Jan 2016 00:55:34 +0000 (+1300) Subject: param: fix a typo emtpy -> empty X-Git-Tag: tdb-1.3.10~524 X-Git-Url: http://git.samba.org/samba.git/?p=sharpe%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=73152561df1f6da991057ce066fe30de117ebc20 param: fix a typo emtpy -> empty Signed-off-by: Garming Sam Reviewed-by: Andrew Bartlett --- diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c index 73d4204ee4e..19ee7ebeda3 100644 --- a/lib/param/loadparm.c +++ b/lib/param/loadparm.c @@ -549,7 +549,7 @@ bool lpcfg_parm_bool(struct loadparm_context *lp_ctx, /* this is used to prevent lots of mallocs of size 1 */ -static const char lpcfg_string_emtpy[] = ""; +static const char lpcfg_string_empty[] = ""; /** Free a string value. @@ -559,7 +559,7 @@ void lpcfg_string_free(char **s) if (s == NULL) { return; } - if (*s == lpcfg_string_emtpy) { + if (*s == lpcfg_string_empty) { *s = NULL; return; } @@ -575,7 +575,7 @@ bool lpcfg_string_set(TALLOC_CTX *mem_ctx, char **dest, const char *src) lpcfg_string_free(dest); if ((src == NULL) || (*src == '\0')) { - *dest = discard_const_p(char, lpcfg_string_emtpy); + *dest = discard_const_p(char, lpcfg_string_empty); return true; } @@ -597,7 +597,7 @@ bool lpcfg_string_set_upper(TALLOC_CTX *mem_ctx, char **dest, const char *src) lpcfg_string_free(dest); if ((src == NULL) || (*src == '\0')) { - *dest = discard_const_p(char, lpcfg_string_emtpy); + *dest = discard_const_p(char, lpcfg_string_empty); return true; }