diff --git a/src/osgPlugins/txp/trpage_model.cpp b/src/osgPlugins/txp/trpage_model.cpp index af3d60231..6c5d1a910 100644 --- a/src/osgPlugins/txp/trpage_model.cpp +++ b/src/osgPlugins/txp/trpage_model.cpp @@ -89,7 +89,7 @@ void trpgModel::SetName(const char *nm) if (nm) { - name = new char[(nm ? strlen(nm) : 0)+1]; + name = new char[strlen(nm)+1]; strcpy(name,nm); } }