We are using a variable which may be uninitialized (even though it is initialized in the case where it is used)
GCC8 fails to build due to this.
As that variable is only ever compared with a constant, compare the return value directly without storing it on a variable.
Fixes #284 (closed)
Closes #284 (closed)