1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4-torture: fixed uninitialised variable error

ret is uninitialised if the directory is empty
This commit is contained in:
Andrew Tridgell 2010-10-13 19:42:45 +11:00
parent b5ffdb6f9c
commit 261628d1e4

View File

@ -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) {