Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
12bd062b
Commit
12bd062b
authored
Jan 03, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asprintf -> strdup
parent
54335f5e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
extras/analyser/zsh.cpp
extras/analyser/zsh.cpp
+1
-1
modules/demux/playlist/playlist.c
modules/demux/playlist/playlist.c
+2
-1
modules/misc/notify/growl.m
modules/misc/notify/growl.m
+5
-1
No files found.
extras/analyser/zsh.cpp
View file @
12bd062b
...
...
@@ -257,7 +257,7 @@ void ParseOption( module_config_t *p_item, mumap &mods, mcmap &mods2 )
list
=
list
.
append
(
"'"
);
++
range
.
first
;
}
asprintf
(
&
psz_arguments
,
"%s"
,
list
.
c_str
()
);
psz_arguments
=
strdup
(
list
.
c_str
()
);
}
break
;
...
...
modules/demux/playlist/playlist.c
View file @
12bd062b
...
...
@@ -192,7 +192,8 @@ char *FindPrefix( demux_t *p_demux )
}
else
{
if
(
asprintf
(
&
psz_path
,
"%s"
,
p_demux
->
psz_path
)
==
-
1
)
psz_path
=
strdup
(
p_demux
->
psz_path
);
if
(
psz_path
==
NULL
)
return
NULL
;
}
...
...
modules/misc/notify/growl.m
View file @
12bd062b
...
...
@@ -198,7 +198,11 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
else if( psz_artist )
i_ret = asprintf(
&
psz_tmp, "%s\n%s", psz_title, psz_artist );
else
i_ret = asprintf(
&
psz_tmp, "%s", psz_title );
{
psz_tmp = strdup( psz_title );
if( psz_tmp == NULL )
i_ret = -1;
}
if( i_ret == -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