projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add type-checked versions of allocation and deallocations functions
[lttng-tools.git]
/
src
/
common
/
compat
/
string.hpp
diff --git
a/src/common/compat/string.hpp
b/src/common/compat/string.hpp
index 4a96cb1456ffd2a928d18439007cfc3959b2b5e5..526f2b2ced3b200ecfa696083baa9fadc72408eb 100644
(file)
--- a/
src/common/compat/string.hpp
+++ b/
src/common/compat/string.hpp
@@
-61,7
+61,7
@@
char *lttng_strndup(const char *s, size_t n)
navail = n + 1;
}
navail = n + 1;
}
- ret =
(char *) malloc
(navail);
+ ret =
malloc<char>
(navail);
if (!ret) {
goto end;
}
if (!ret) {
goto end;
}
This page took
0.023846 seconds
and
4
git commands to generate.