From e7426afc020a122ae45975fe076ba1a50d94281c Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 19 Mar 2021 11:34:05 -0400 Subject: help: Fix return statements --- (limited to 'src') 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; -- cgit v0.9.1