s3:utils/net fix a compiler warning
authorChristian Ambach <ambi@samba.org>
Fri, 21 Sep 2012 20:58:29 +0000 (13:58 -0700)
committerChristian Ambach <ambi@samba.org>
Sat, 22 Sep 2012 00:45:50 +0000 (02:45 +0200)
ret might be used uninitialized in out-of-memory condition

source3/utils/net_connections.c

index b713ed9c060f8a67320459bdd2ce30ce9a211a92..a74d53f63af178106612385861a1bae7cec2f6c0 100644 (file)
@@ -194,7 +194,7 @@ static int delete_orphans(struct cclean_ctx *ctx)
 
 static int cclean(bool verbose, bool dry_run, bool automatic)
 {
-       int ret;
+       int ret = -1;
        struct cclean_ctx *ctx = talloc_zero(talloc_tos(), struct cclean_ctx);
        if (ctx == NULL) {
                d_printf("Out of memory\n");