diff options
author | Christian Ambach <ambi@samba.org> | 2012-09-21 13:58:29 -0700 |
---|---|---|
committer | Christian Ambach <ambi@samba.org> | 2012-09-22 02:45:50 +0200 |
commit | f480b44430520f998fea867aa4c2cf9e93cb8d51 (patch) | |
tree | 983fb5bf8aad9e0058a35a11f9e085c924d658f2 | |
parent | d59688a8e749454a59174b545f152a5c2880f999 (diff) | |
download | samba-f480b44430520f998fea867aa4c2cf9e93cb8d51.tar.gz samba-f480b44430520f998fea867aa4c2cf9e93cb8d51.tar.bz2 samba-f480b44430520f998fea867aa4c2cf9e93cb8d51.zip |
s3:utils/net fix a compiler warning
ret might be used uninitialized in out-of-memory condition
-rw-r--r-- | source3/utils/net_connections.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_connections.c b/source3/utils/net_connections.c index b713ed9c06..a74d53f63a 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"); |