SDL_RenderGetIntegerScale error handling

Hi guys, just a quick and dumb question. I was wondering how to differentiate whether it had an error when calling SDL_RenderGetIntegerScale. Should I always be clearing the error before using it? Thanks!