Skip to content

Commit

Permalink
assign default error message
Browse files Browse the repository at this point in the history
  • Loading branch information
knok committed Jul 23, 2019
1 parent 2df6437 commit a53c872
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/stb_image.h
Expand Up @@ -845,6 +845,8 @@ static const char *stbi__g_failure_reason;

STBIDEF const char *stbi_failure_reason(void)
{
if (stbi__g_failure_reason == NULL)
stbi__g_failure_reason = "unknwon error, refer error message before assignment";
return stbi__g_failure_reason;
}

Expand Down

0 comments on commit a53c872

Please sign in to comment.