From 261628d1e49921eac143f8ad0167620f95db1a33 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 13 Oct 2010 19:42:45 +1100 Subject: s4-torture: fixed uninitialised variable error ret is uninitialised if the directory is empty --- lib/torture/torture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/torture') diff --git a/lib/torture/torture.c b/lib/torture/torture.c index 9d77ab41d1..1f55cd04a8 100644 --- a/lib/torture/torture.c +++ b/lib/torture/torture.c @@ -96,7 +96,7 @@ _PUBLIC_ NTSTATUS torture_temp_dir(struct torture_context *tctx, static int local_deltree(const char *path) { - int ret; + int ret = 0; struct dirent *dirent; DIR *dir = opendir(path); if (!dir) { -- cgit