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:
parent
b5ffdb6f9c
commit
261628d1e4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user