diff options
author | Volker Lendecke <vl@samba.org> | 2011-04-17 11:32:28 +0200 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-04-17 12:26:15 +0200 |
commit | 0bf7c9646413673e24cfea94eb74dce88f79c470 (patch) | |
tree | b7d7c464e6beae6ae0fce9c74578346125de6a09 /source3 | |
parent | ca5dcf241289fb3489bf9da9ea5dfd1de0a67fab (diff) | |
download | samba-0bf7c9646413673e24cfea94eb74dce88f79c470.tar.gz samba-0bf7c9646413673e24cfea94eb74dce88f79c470.tar.bz2 samba-0bf7c9646413673e24cfea94eb74dce88f79c470.zip |
s3: Use \0 instead of NULL when 0-terminating a string
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Apr 17 12:26:15 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c index 50c22d9009..a2582a1d1f 100644 --- a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c +++ b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c @@ -478,7 +478,7 @@ static void callback_do_hostname_change(GtkWidget *widget, p = strchr(newname, '.'); if (p) { - *p = NULL; + *p = '\0'; } if (!state->account || !state->password) { |