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
234fc4e3
Commit
234fc4e3
authored
Aug 19, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix use of undefined variable
parent
8c4e6727
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
src/misc/messages.c
src/misc/messages.c
+9
-7
No files found.
src/misc/messages.c
View file @
234fc4e3
...
...
@@ -307,7 +307,8 @@ static void QueueMsg( vlc_object_t *p_this, int i_queue, int i_type,
/* Convert message to string */
#if defined(HAVE_VASPRINTF) && !defined(__APPLE__) && !defined( SYS_BEOS )
vlc_va_copy
(
args
,
_args
);
vasprintf
(
&
psz_str
,
psz_format
,
args
);
if
(
vasprintf
(
&
psz_str
,
psz_format
,
args
)
==
-
1
)
psz_str
=
NULL
;
va_end
(
args
);
#else
psz_str
=
(
char
*
)
malloc
(
i_size
);
...
...
@@ -599,14 +600,14 @@ void msg_StackSet( int i_code, const char *psz_message, ... )
va_list
ap
;
msg_context_t
*
p_ctx
=
GetContext
();
assert
(
p_ctx
);
va_start
(
ap
,
psz_message
);
if
(
p_ctx
->
psz_message
!=
NULL
)
{
free
(
p_ctx
->
psz_message
);
}
free
(
p_ctx
->
psz_message
);
vasprintf
(
&
p_ctx
->
psz_message
,
psz_message
,
ap
);
if
(
vasprintf
(
&
p_ctx
->
psz_message
,
psz_message
,
ap
)
==
-
1
)
p_ctx
->
psz_message
=
NULL
;
va_end
(
ap
);
p_ctx
->
i_code
=
i_code
;
}
...
...
@@ -618,7 +619,8 @@ void msg_StackAdd( const char *psz_message, ... )
assert
(
p_ctx
);
va_start
(
ap
,
psz_message
);
vasprintf
(
&
psz_tmp
,
psz_message
,
ap
);
if
(
vasprintf
(
&
psz_tmp
,
psz_message
,
ap
)
==
-
1
)
psz_tmp
=
NULL
;
va_end
(
ap
);
if
(
!
p_ctx
->
psz_message
)
...
...
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