Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
9e815e5b
Commit
9e815e5b
authored
May 23, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: no need to memset a whole string buffer
parent
5036683e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/input/var.c
src/input/var.c
+3
-1
No files found.
src/input/var.c
View file @
9e815e5b
...
@@ -292,13 +292,15 @@ void input_ControlVarNavigation( input_thread_t *p_input )
...
@@ -292,13 +292,15 @@ void input_ControlVarNavigation( input_thread_t *p_input )
var_AddCallback
(
p_input
,
val
.
psz_string
,
var_AddCallback
(
p_input
,
val
.
psz_string
,
NavigationCallback
,
(
void
*
)(
intptr_t
)
i
);
NavigationCallback
,
(
void
*
)(
intptr_t
)
i
);
char
psz_length
[
MSTRTIME_MAX_SIZE
+
sizeof
(
" []"
)]
=
""
;
char
psz_length
[
MSTRTIME_MAX_SIZE
+
sizeof
(
" []"
)];
if
(
p_input
->
p
->
title
[
i
]
->
i_length
>
0
)
if
(
p_input
->
p
->
title
[
i
]
->
i_length
>
0
)
{
{
strcpy
(
psz_length
,
" ["
);
strcpy
(
psz_length
,
" ["
);
secstotimestr
(
&
psz_length
[
2
],
p_input
->
p
->
title
[
i
]
->
i_length
/
CLOCK_FREQ
);
secstotimestr
(
&
psz_length
[
2
],
p_input
->
p
->
title
[
i
]
->
i_length
/
CLOCK_FREQ
);
strcat
(
psz_length
,
"]"
);
strcat
(
psz_length
,
"]"
);
}
}
else
psz_length
[
0
]
=
'\0'
;
if
(
p_input
->
p
->
title
[
i
]
->
psz_name
==
NULL
||
if
(
p_input
->
p
->
title
[
i
]
->
psz_name
==
NULL
||
*
p_input
->
p
->
title
[
i
]
->
psz_name
==
'\0'
)
*
p_input
->
p
->
title
[
i
]
->
psz_name
==
'\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