From f480b44430520f998fea867aa4c2cf9e93cb8d51 Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Fri, 21 Sep 2012 13:58:29 -0700 Subject: [PATCH] s3:utils/net fix a compiler warning ret might be used uninitialized in out-of-memory condition --- source3/utils/net_connections.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/utils/net_connections.c b/source3/utils/net_connections.c index b713ed9c060..a74d53f63af 100644 --- a/source3/utils/net_connections.c +++ b/source3/utils/net_connections.c @@ -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"); -- 2.11.4.GIT