Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
varnishevent3
Commits
281c8187
Commit
281c8187
authored
Mar 09, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify a pointers value for FlexeLint
parent
1dfaf8aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
cache_dir_random.c
bin/varnishd/cache_dir_random.c
+2
-1
No files found.
bin/varnishd/cache_dir_random.c
View file @
281c8187
...
...
@@ -90,7 +90,7 @@ vdi_random_getfd(const struct director *d, struct sess *sp)
struct
vbc
*
vbe
;
struct
director
*
d2
;
struct
SHA256Context
ctx
;
uint8_t
sign
[
SHA256_LEN
],
*
hp
;
uint8_t
sign
[
SHA256_LEN
],
*
hp
=
NULL
;
CHECK_OBJ_NOTNULL
(
sp
,
SESS_MAGIC
);
CHECK_OBJ_NOTNULL
(
d
,
DIRECTOR_MAGIC
);
...
...
@@ -128,6 +128,7 @@ vdi_random_getfd(const struct director *d, struct sess *sp)
* amongst the healthy set.
*/
if
(
vs
->
criteria
!=
c_random
)
{
AN
(
hp
);
u
=
vle32dec
(
hp
);
r
=
u
/
4294967296
.
0
;
assert
(
r
>=
0
.
0
&&
r
<
1
.
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment