Resolve "nautilus 3.27.92 fails to build with gcc 8"

Merged António Fernandes requested to merge 284-nautilus-3-27-92-fails-to-build-with-gcc-8 into master

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)

Merge request reports