diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-08-27 16:50:10 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:54 -0500 |
commit | 5d4a189d4e1ddc7ba19c585811f2fb45b9534cc7 (patch) | |
tree | e449d41028afa309abb47d99c8dea31f9362c64d /source3/torture | |
parent | c3bbcc608e292397b7f9f12189572f463bb1e322 (diff) | |
download | samba-5d4a189d4e1ddc7ba19c585811f2fb45b9534cc7.tar.gz samba-5d4a189d4e1ddc7ba19c585811f2fb45b9534cc7.tar.bz2 samba-5d4a189d4e1ddc7ba19c585811f2fb45b9534cc7.zip |
r17853: Fix an uninitialized variable (m_time2). Jeremy, please check.
Thanks,
Volker
(This used to be commit 389910b2d376bc5795b0afacb86e45d7a6987491)
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/torture.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 59d6fa0113..2ee0ca5ed7 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -2467,7 +2467,7 @@ static BOOL run_trans2test(int dummy) struct cli_state *cli; int fnum; SMB_OFF_T size; - time_t c_time, a_time, m_time, m_time2; + time_t c_time, a_time, m_time; struct timespec c_time_ts, a_time_ts, m_time_ts, w_time_ts, m_time2_ts; const char *fname = "\\trans2.tst"; const char *dname = "\\trans2"; @@ -2577,7 +2577,8 @@ static BOOL run_trans2test(int dummy) printf("ERROR: qpathinfo2 failed (%s)\n", cli_errstr(cli)); correct = False; } else { - if (m_time2 == m_time) { + if (memcmp(&m_time_ts, &m_time2_ts, sizeof(struct timespec)) + == 0) { printf("This system does not update directory modification times\n"); correct = False; } |