"if (strlen(msg))" -> "if (msg[0])"

This commit is contained in:
Olly Betts 2014-02-17 16:26:48 +13:00
commit b761131fec
3 changed files with 3 additions and 3 deletions

View file

@ -179,7 +179,7 @@ namespace Swig {
public:
DirectorException(PyObject *error, const char *hdr ="", const char *msg ="") : swig_msg(hdr) {
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
if (strlen(msg)) {
if (msg[0]) {
swig_msg += " ";
swig_msg += msg;
}