s3:smbd: fix warning in smbd_tevent_trace_callback() without profile support
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Jun 2012 10:10:00 +0000 (12:10 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 22 Jun 2012 10:56:47 +0000 (12:56 +0200)
metze

source3/smbd/process.c

index 465f429747098633a99860e6dccea10d05838ed7..77c4804a38af0e4c1772370e8f8a478f19ea9aad 100644 (file)
@@ -3172,6 +3172,11 @@ static void smbd_tevent_trace_callback(enum tevent_trace_point point,
 
        switch (point) {
        case TEVENT_TRACE_BEFORE_WAIT:
+               /*
+                * This just removes compiler warning
+                * without profile support
+                */
+               conn->smbd_idle_profstamp = 0;
                START_PROFILE_STAMP(smbd_idle, conn->smbd_idle_profstamp);
                break;
        case TEVENT_TRACE_AFTER_WAIT: