diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-10-13 19:42:45 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-10-13 11:00:04 +0000 |
commit | 261628d1e49921eac143f8ad0167620f95db1a33 (patch) | |
tree | 30b7e8a3497a65bd1c56f4c0d50a76a8920f034e /lib/torture | |
parent | b5ffdb6f9c7e003223614baac18f03fe02e7d782 (diff) | |
download | samba-261628d1e49921eac143f8ad0167620f95db1a33.tar.gz samba-261628d1e49921eac143f8ad0167620f95db1a33.tar.xz samba-261628d1e49921eac143f8ad0167620f95db1a33.zip |
s4-torture: fixed uninitialised variable error
ret is uninitialised if the directory is empty
Diffstat (limited to 'lib/torture')
-rw-r--r-- | lib/torture/torture.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |