From 434c6d075f41f01a875756a02dd01fc802148ada Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sun, 8 Mar 2009 00:18:59 +0100 Subject: Fix initialization problems Init tools ctx in groupadd before copying its value --- server/tools/sss_useradd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/tools/sss_useradd.c') diff --git a/server/tools/sss_useradd.c b/server/tools/sss_useradd.c index 2cf7826e..98f83774 100644 --- a/server/tools/sss_useradd.c +++ b/server/tools/sss_useradd.c @@ -269,9 +269,9 @@ int main(int argc, const char **argv) { "groups", 'G', POPT_ARG_STRING, NULL, 0, "Groups", NULL }, POPT_TABLEEND }; - poptContext pc; + poptContext pc = NULL; struct user_add_ctx *user_ctx = NULL; - struct tools_ctx *ctx; + struct tools_ctx *ctx = NULL; char *groups; int ret; -- cgit