Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / bin / lttng / conf.cpp
index d79fba989f1368bc75cfcb2575f8b459b232b7cb..33550eb3778fe5fb636c0700618b153804f84057 100644 (file)
@@ -178,7 +178,7 @@ int _config_read_session_name(const char *path, char **name)
 #define NAME_MAX_SCANF_IS_A_BROKEN_API "254"
 #endif
 
-       session_name = (char *) zmalloc(NAME_MAX);
+       session_name = calloc<char>(NAME_MAX);
        if (session_name == NULL) {
                ret = -ENOMEM;
                ERR("Out of memory");
This page took 0.023488 seconds and 4 git commands to generate.