"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

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