Skip to content

Commit 0e5924a

Browse files
committed
Bug fix
1 parent 4721271 commit 0e5924a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

zend/callable.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,9 @@ class Callable
214214
/// FIXME this leaks, although this happens only once during startup / MINIT
215215
/// Probably not critical
216216

217-
char* orig = arg.classname();
218-
std::size_t len = std::strlen(orig);
219-
char* newname = new char[len + 2]; // trailing NUL and heading ?
217+
const char* orig = arg.classname();
218+
std::size_t len = std::strlen(orig);
219+
char* newname = new char[len + 2]; // trailing NUL and heading ?
220220
newname[0] = '?';
221221
std::memcpy(newname + 1, orig, len + 1 /* Trailing NUL */);
222222
}

0 commit comments

Comments
 (0)