Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
3a5100e8
Commit
3a5100e8
authored
Jul 22, 2013
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing va_end (cid #1049744)
parent
cbf0d74b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/access/zip/zipstream.c
modules/access/zip/zipstream.c
+4
-4
No files found.
modules/access/zip/zipstream.c
View file @
3a5100e8
...
...
@@ -136,15 +136,15 @@ inline static void free_all_node( node *root )
/* Allocate strcat and format */
static
int
astrcatf
(
char
**
ppsz_dest
,
const
char
*
psz_fmt_src
,
...
)
{
char
*
psz_tmp
;
va_list
args
;
va_start
(
args
,
psz_fmt_src
);
char
*
psz_tmp
;
va_start
(
args
,
psz_fmt_src
)
;
int
i_ret
=
vasprintf
(
&
psz_tmp
,
psz_fmt_src
,
args
);
if
(
i_ret
==
-
1
)
return
-
1
;
va_end
(
args
);
if
(
i_ret
==
-
1
)
return
-
1
;
int
i_len
=
strlen
(
*
ppsz_dest
)
+
strlen
(
psz_tmp
)
+
1
;
char
*
psz_out
=
realloc
(
*
ppsz_dest
,
i_len
);
if
(
!
psz_out
)
return
-
1
;
...
...
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