From aa0523f60a4fc37c01f7f4b1e835db87f213fe04 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 27 Jun 2016 17:09:41 +0100 Subject: [PATCH] Removed logicaly dead code --- src/osgPlugins/txp/trpage_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }