From 5d4a189d4e1ddc7ba19c585811f2fb45b9534cc7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 27 Aug 2006 16:50:10 +0000 Subject: r17853: Fix an uninitialized variable (m_time2). Jeremy, please check. Thanks, Volker (This used to be commit 389910b2d376bc5795b0afacb86e45d7a6987491) --- source3/torture/torture.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3') 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; } -- cgit