Commit fadc39b
committed
guestagent: Fix isEmptyEvent check
The intention seems to be checking if an event is equal to empty event,
ignoring the event time, by copying the event and setting its time to
nil. However instead of copying the event, we use the same object and
set the event time to nil.
I don't know if this caused a user visible problem, but it likely log
wrong event time if we log the event.
Signed-off-by: Nir Soffer <nirsof@gmail.com>1 parent e05d782 commit fadc39b
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
196 | | - | |
| 194 | + | |
| 195 | + | |
197 | 196 | | |
198 | 197 | | |
199 | 198 | | |
| |||
0 commit comments