Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
f8cdec1d
Commit
f8cdec1d
authored
Apr 16, 2018
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tighten up checks
parent
932ed4af
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
vtim.c
lib/libvarnish/vtim.c
+3
-0
vmod_std_conversions.c
lib/libvmod_std/vmod_std_conversions.c
+0
-2
vmod_std_fileread.c
lib/libvmod_std/vmod_std_fileread.c
+3
-0
No files found.
lib/libvarnish/vtim.c
View file @
f8cdec1d
...
@@ -243,6 +243,9 @@ VTIM_parse(const char *p)
...
@@ -243,6 +243,9 @@ VTIM_parse(const char *p)
int
hour
=
0
,
min
=
0
,
sec
=
0
;
int
hour
=
0
,
min
=
0
,
sec
=
0
;
int
d
,
leap
;
int
d
,
leap
;
if
(
p
==
NULL
||
*
p
==
'\0'
)
FAIL
();
while
(
*
p
==
' '
)
while
(
*
p
==
' '
)
p
++
;
p
++
;
...
...
lib/libvmod_std/vmod_std_conversions.c
View file @
f8cdec1d
...
@@ -194,8 +194,6 @@ vmod_time(VRT_CTX, VCL_STRING p, VCL_TIME d)
...
@@ -194,8 +194,6 @@ vmod_time(VRT_CTX, VCL_STRING p, VCL_TIME d)
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
if
(
p
==
NULL
)
return
(
d
);
r
=
VTIM_parse
(
p
);
r
=
VTIM_parse
(
p
);
if
(
r
)
if
(
r
)
return
(
r
);
return
(
r
);
...
...
lib/libvmod_std/vmod_std_fileread.c
View file @
f8cdec1d
...
@@ -90,6 +90,9 @@ vmod_fileread(VRT_CTX, struct vmod_priv *priv,
...
@@ -90,6 +90,9 @@ vmod_fileread(VRT_CTX, struct vmod_priv *priv,
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
AN
(
priv
);
AN
(
priv
);
if
(
file_name
==
NULL
)
return
(
NULL
);
if
(
priv
->
priv
!=
NULL
)
{
if
(
priv
->
priv
!=
NULL
)
{
CAST_OBJ_NOTNULL
(
frf
,
priv
->
priv
,
CACHED_FILE_MAGIC
);
CAST_OBJ_NOTNULL
(
frf
,
priv
->
priv
,
CACHED_FILE_MAGIC
);
if
(
!
strcmp
(
file_name
,
frf
->
file_name
))
if
(
!
strcmp
(
file_name
,
frf
->
file_name
))
...
...
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