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
c502f536
Commit
c502f536
authored
Feb 26, 2016
by
Poul-Henning Kamp
Committed by
Lasse Karstensen
Mar 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add VSB_destroy(). It's like VSB_delete() but it NULL's the pointer.
parent
0947220b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
vsb.h
include/vsb.h
+1
-0
vsb.c
lib/libvarnish/vsb.c
+7
-0
No files found.
include/vsb.h
View file @
c502f536
...
...
@@ -75,6 +75,7 @@ int VSB_finish(struct vsb *);
char
*
VSB_data
(
const
struct
vsb
*
);
ssize_t
VSB_len
(
const
struct
vsb
*
);
void
VSB_delete
(
struct
vsb
*
);
void
VSB_destroy
(
struct
vsb
**
);
#define VSB_QUOTE_NONL 1
void
VSB_quote
(
struct
vsb
*
s
,
const
char
*
p
,
int
len
,
int
how
);
void
VSB_indent
(
struct
vsb
*
,
int
);
...
...
lib/libvarnish/vsb.c
View file @
c502f536
...
...
@@ -489,6 +489,13 @@ VSB_delete(struct vsb *s)
SBFREE
(
s
);
}
void
VSB_destroy
(
struct
vsb
**
s
)
{
VSB_delete
(
*
s
);
*
s
=
NULL
;
}
/*
* Quote a string
*/
...
...
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