Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
5e6ac505
Commit
5e6ac505
authored
Jan 04, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initialize GError pointers
GLib mandates that you initialize all GError objects with NULL prior to passing it.
parent
530f0b71
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
decoder_thread.c
src/decoder_thread.c
+1
-1
output_thread.c
src/output_thread.c
+1
-1
player_thread.c
src/player_thread.c
+1
-1
update.c
src/update.c
+1
-1
No files found.
src/decoder_thread.c
View file @
5e6ac505
...
...
@@ -253,7 +253,7 @@ static gpointer decoder_task(G_GNUC_UNUSED gpointer arg)
void
decoder_thread_start
(
void
)
{
GError
*
e
;
GError
*
e
=
NULL
;
GThread
*
t
;
if
(
!
(
t
=
g_thread_create
(
decoder_task
,
NULL
,
FALSE
,
&
e
)))
...
...
src/output_thread.c
View file @
5e6ac505
...
...
@@ -167,7 +167,7 @@ static gpointer audio_output_task(gpointer arg)
void
audio_output_thread_start
(
struct
audio_output
*
ao
)
{
GError
*
e
;
GError
*
e
=
NULL
;
assert
(
ao
->
command
==
AO_COMMAND_NONE
);
...
...
src/player_thread.c
View file @
5e6ac505
...
...
@@ -556,7 +556,7 @@ static gpointer player_task(G_GNUC_UNUSED gpointer arg)
void
player_create
(
void
)
{
GError
*
e
;
GError
*
e
=
NULL
;
GThread
*
t
;
if
(
!
(
t
=
g_thread_create
(
player_task
,
NULL
,
FALSE
,
&
e
)))
...
...
src/update.c
View file @
5e6ac505
...
...
@@ -653,7 +653,7 @@ static void * update_task(void *_path)
static
void
spawn_update_task
(
char
*
path
)
{
GError
*
e
;
GError
*
e
=
NULL
;
assert
(
g_thread_self
()
==
main_task
);
...
...
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