X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fconf.cpp;fp=src%2Fbin%2Flttng%2Fconf.cpp;h=33550eb3778fe5fb636c0700618b153804f84057;hp=d79fba989f1368bc75cfcb2575f8b459b232b7cb;hb=64803277bbdbe0a943360d918298a48157d9da55;hpb=60f1b42d6280b6bd386abb726dca4fd3b31d8491 diff --git a/src/bin/lttng/conf.cpp b/src/bin/lttng/conf.cpp index d79fba989..33550eb37 100644 --- a/src/bin/lttng/conf.cpp +++ b/src/bin/lttng/conf.cpp @@ -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(NAME_MAX); if (session_name == NULL) { ret = -ENOMEM; ERR("Out of memory");