summaryrefslogtreecommitdiff
path: root/source/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-06-08 09:45:21 +0200
committerKarolin Seeger <kseeger@samba.org>2009-06-10 16:17:59 +0200
commit44198ca1cb068edbb211c046041a968e137c4eb5 (patch)
tree38e8ed0be36134cf24fd4eb2a9ca0be9d30c37f6 /source/utils
parent07e370863b4b2120c087c14e4f9e60b791113752 (diff)
downloadsamba-44198ca1cb068edbb211c046041a968e137c4eb5.tar.gz
Fix bug 6449
Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> for reporting! (cherry picked from commit a956e36ceb22072cd4ea755ce9b4457896af4b14)
Diffstat (limited to 'source/utils')
-rw-r--r--source/utils/net_rap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/utils/net_rap.c b/source/utils/net_rap.c
index dd757abd1ac..573f18db60e 100644
--- a/source/utils/net_rap.c
+++ b/source/utils/net_rap.c
@@ -822,7 +822,7 @@ static int rap_user_add(struct net_context *c, int argc, const char **argv)
userinfo.userflags = c->opt_flags;
userinfo.reserved1 = '\0';
- userinfo.comment = smb_xstrdup(c->opt_comment);
+ userinfo.comment = smb_xstrdup(c->opt_comment ? c->opt_comment : "");
userinfo.priv = 1;
userinfo.home_dir = NULL;
userinfo.logon_script = NULL;