mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 08:38:20 +00:00
Making valgrind a bit more happy, and adding code that may or may not
help with #490 and #491.
This commit is contained in:
parent
1d20d2a985
commit
5113b100d9
5 changed files with 13 additions and 2 deletions
|
@ -1133,6 +1133,7 @@ uint64 calculate_unique_id()
|
|||
int rnd;
|
||||
} unique;
|
||||
|
||||
memset(&unique, 0, sizeof(unique)); // Make valgrind happy.
|
||||
gethostname(unique.hostname, 128);
|
||||
unique.hostname[sizeof(unique.hostname)-1] = '\0';
|
||||
gettimeofday(&unique.time, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue