summaryrefslogtreecommitdiff
path: root/server/tools/sss_useradd.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2009-03-08 00:18:59 +0100
committerStephen Gallagher <sgallagh@redhat.com>2009-03-08 10:15:04 -0400
commit434c6d075f41f01a875756a02dd01fc802148ada (patch)
tree9fcdaf5d1f99b19bb2c204319eba1bccbac432a2 /server/tools/sss_useradd.c
parent4c4bfc1a9590b3da9c901194f84dcb189481b25a (diff)
downloadsssd-434c6d075f41f01a875756a02dd01fc802148ada.tar.gz
sssd-434c6d075f41f01a875756a02dd01fc802148ada.tar.bz2
sssd-434c6d075f41f01a875756a02dd01fc802148ada.zip
Fix initialization problems
Init tools ctx in groupadd before copying its value
Diffstat (limited to 'server/tools/sss_useradd.c')
-rw-r--r--server/tools/sss_useradd.c4
1 files changed, 2 insertions, 2 deletions
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;