git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d59688a
)
s3:utils/net fix a compiler warning
author
Christian Ambach
<ambi@samba.org>
Fri, 21 Sep 2012 20:58:29 +0000
(13:58 -0700)
committer
Christian 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
patch
|
blob
|
history
diff --git
a/source3/utils/net_connections.c
b/source3/utils/net_connections.c
index b713ed9c060f8a67320459bdd2ce30ce9a211a92..a74d53f63af178106612385861a1bae7cec2f6c0 100644
(file)
--- 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");