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
61ce5ee8
Commit
61ce5ee8
authored
Mar 16, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce variable scope
parent
4dd64b21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/modules/cache.c
src/modules/cache.c
+5
-5
No files found.
src/modules/cache.c
View file @
61ce5ee8
...
...
@@ -332,11 +332,11 @@ static int CacheLoadConfig( module_t *p_module, FILE *file )
{
if
(
p_module
->
p_config
[
i
].
ppsz_list
)
{
int
j
;
p_module
->
p_config
[
i
].
ppsz_list
=
xmalloc
(
(
p_module
->
p_config
[
i
].
i_list
+
1
)
*
sizeof
(
char
*
));
if
(
p_module
->
p_config
[
i
].
ppsz_list
)
{
int
j
;
for
(
j
=
0
;
j
<
p_module
->
p_config
[
i
].
i_list
;
j
++
)
LOAD_STRING
(
p_module
->
p_config
[
i
].
ppsz_list
[
j
]
);
p_module
->
p_config
[
i
].
ppsz_list
[
j
]
=
NULL
;
...
...
@@ -344,14 +344,14 @@ static int CacheLoadConfig( module_t *p_module, FILE *file )
}
if
(
p_module
->
p_config
[
i
].
ppsz_list_text
)
{
int
j
;
p_module
->
p_config
[
i
].
ppsz_list_text
=
xmalloc
(
(
p_module
->
p_config
[
i
].
i_list
+
1
)
*
sizeof
(
char
*
));
if
(
p_module
->
p_config
[
i
].
ppsz_list_text
)
{
for
(
j
=
0
;
j
<
p_module
->
p_config
[
i
].
i_list
;
j
++
)
LOAD_STRING
(
p_module
->
p_config
[
i
].
ppsz_list_text
[
j
]
);
p_module
->
p_config
[
i
].
ppsz_list_text
[
j
]
=
NULL
;
int
j
;
for
(
j
=
0
;
j
<
p_module
->
p_config
[
i
].
i_list
;
j
++
)
LOAD_STRING
(
p_module
->
p_config
[
i
].
ppsz_list_text
[
j
]
);
p_module
->
p_config
[
i
].
ppsz_list_text
[
j
]
=
NULL
;
}
}
if
(
p_module
->
p_config
[
i
].
pi_list
)
...
...
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