From 98a8a3e06fa462d273ce3658b7b21586ec242585 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 8 Jun 2009 09:45:21 +0200 Subject: [PATCH] Fix bug 6449 Thanks to TAKAHASHI Motonobu for reporting! --- source/utils/net_rap.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/source/utils/net_rap.c b/source/utils/net_rap.c index dd757ab..573f18d 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; -- 1.5.5