POSIX: fix possible invalid API usage
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 8 Mar 2014 20:47:07 +0000 (20:47 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 8 Mar 2014 20:47:07 +0000 (20:47 +0000)
commitd41fca11af4f821b58cb840ce85127c0cb1ff962
treebc9d095f25b9fe331a4d11cdb018db5033529883
parent03700ded1b80bf1d0e4b2373001b3320ef014e23
POSIX: fix possible invalid API usage

strcmp cannot be passed a NULL.  Add a short-circuiting check to avoid the
possible API misuse.

llvm-svn: 203358
lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp