[Lldb-commits] [PATCH] Initialize variable to prevent garbage values

Neil P. parikh.neil at me.com
Fri Jul 17 17:33:04 PDT 2015


Hello,

The kernels_found variable is not initialized, so if it is not assigned true on line 823, then it will be a garbage value in the branch condition on line 828. This patch initializes the variable to false. I'm assuming that if it's not set, then it was not found. I'm not 100% sure about this, so a confirmation of this would be good.

This is my first patch to an LLVM project, so please let me know if there's anything I need to fix. I haven't built or run the test suite yet, but if it's required to commit the patch, I can look into figuring that out.

Thanks,
Neil Parikh


More information about the lldb-commits mailing list