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
d70591b6
Commit
d70591b6
authored
Mar 14, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sticker: sticker_load_value() returns NULL on error, not false
Turn the "return false" error handlers into "return NULL".
parent
77eaab55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sticker.c
src/sticker.c
+4
-4
No files found.
src/sticker.c
View file @
d70591b6
...
...
@@ -154,21 +154,21 @@ sticker_load_value(const char *type, const char *uri, const char *name)
if
(
ret
!=
SQLITE_OK
)
{
g_warning
(
"sqlite3_bind_text() failed: %s"
,
sqlite3_errmsg
(
sticker_db
));
return
false
;
return
NULL
;
}
ret
=
sqlite3_bind_text
(
sticker_stmt_get
,
2
,
uri
,
-
1
,
NULL
);
if
(
ret
!=
SQLITE_OK
)
{
g_warning
(
"sqlite3_bind_text() failed: %s"
,
sqlite3_errmsg
(
sticker_db
));
return
false
;
return
NULL
;
}
ret
=
sqlite3_bind_text
(
sticker_stmt_get
,
3
,
name
,
-
1
,
NULL
);
if
(
ret
!=
SQLITE_OK
)
{
g_warning
(
"sqlite3_bind_text() failed: %s"
,
sqlite3_errmsg
(
sticker_db
));
return
false
;
return
NULL
;
}
do
{
...
...
@@ -185,7 +185,7 @@ sticker_load_value(const char *type, const char *uri, const char *name)
/* error */
g_warning
(
"sqlite3_step() failed: %s"
,
sqlite3_errmsg
(
sticker_db
));
return
false
;
return
NULL
;
}
sqlite3_reset
(
sticker_stmt_get
);
...
...
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