Fixed a clang warning for the variable success not being set in some paths through the code so that the compile is clean