summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/help.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/help.c b/src/help.c
index eed28c6..5cdd40f 100644
--- a/src/help.c
+++ b/src/help.c
@@ -111,7 +111,7 @@ db_help(void)
if (font == NULL) {
db_err("Failed to open font (%s)", TTF_GetError());
free(font_path);
- return;
+ return -1;
}
color.r = 0x00;
@@ -123,7 +123,7 @@ db_help(void)
592);
if (surface == NULL) {
db_err("Failed to create surface (%s)", TTF_GetError());
- return;
+ return -1;
}
TTF_CloseFont(font);
@@ -131,7 +131,7 @@ db_help(void)
texture = SDL_CreateTextureFromSurface(renderer, surface);
if (texture == NULL) {
db_err("Failed to create texture (%s)", SDL_GetError());
- return;
+ return -1;
}
text_src_rect.x = 0;