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
0dc75f8b
Commit
0dc75f8b
authored
Sep 03, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid alloca()
parent
5f8906e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/control/ntservice.c
modules/control/ntservice.c
+2
-1
No files found.
modules/control/ntservice.c
View file @
0dc75f8b
...
@@ -126,6 +126,7 @@ void Close( vlc_object_t *p_this )
...
@@ -126,6 +126,7 @@ void Close( vlc_object_t *p_this )
*****************************************************************************/
*****************************************************************************/
static
void
Run
(
intf_thread_t
*
p_intf
)
static
void
Run
(
intf_thread_t
*
p_intf
)
{
{
intt_sys_t
sys
;
intf_thread_t
*
p_extraintf
;
intf_thread_t
*
p_extraintf
;
SERVICE_TABLE_ENTRY
dispatchTable
[]
=
SERVICE_TABLE_ENTRY
dispatchTable
[]
=
{
{
...
@@ -134,7 +135,7 @@ static void Run( intf_thread_t *p_intf )
...
@@ -134,7 +135,7 @@ static void Run( intf_thread_t *p_intf )
};
};
p_global_intf
=
p_intf
;
p_global_intf
=
p_intf
;
p_intf
->
p_sys
=
alloca
(
sizeof
(
intf_sys_t
)
)
;
p_intf
->
p_sys
=
&
sys
;
p_intf
->
p_sys
->
psz_service
=
config_GetPsz
(
p_intf
,
"ntservice-name"
);
p_intf
->
p_sys
->
psz_service
=
config_GetPsz
(
p_intf
,
"ntservice-name"
);
p_intf
->
p_sys
->
psz_service
=
p_intf
->
p_sys
->
psz_service
?
p_intf
->
p_sys
->
psz_service
=
p_intf
->
p_sys
->
psz_service
?
p_intf
->
p_sys
->
psz_service
:
strdup
(
VLCSERVICENAME
);
p_intf
->
p_sys
->
psz_service
:
strdup
(
VLCSERVICENAME
);
...
...
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