Commit 4bbbc693 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

In theory diag_bitmap could change between (non-)assignment to t0

and use of t0.  Always initialize t0 to something.

Correctly spotted by:	FlexeLint
parent 6393f26c
......@@ -64,7 +64,7 @@ Lck__Lock(struct lock *lck, const char *p, const char *f, int l)
{
struct ilck *ilck;
int r;
double t0, t;
double t0 = 0, t;
CAST_OBJ_NOTNULL(ilck, lck->priv, ILCK_MAGIC);
if (!(cache_param->diag_bitmap & 0x98)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment