Fixing warning from LLVM static analyzer