X-Git-Url: https://git.liburcu.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Funit%2Fini_config%2Fini_config.cpp;h=4cc22119b63e3148881beebfde86a78ecab21df8;hp=976a32db6056cfae23a0b52fb432363e74a54846;hb=cd9adb8b829564212158943a0d279bb35322ab30;hpb=e665dfbce25215d5ec77ff03a279c7163b337db1 diff --git a/tests/unit/ini_config/ini_config.cpp b/tests/unit/ini_config/ini_config.cpp index 976a32db6..4cc22119b 100644 --- a/tests/unit/ini_config/ini_config.cpp +++ b/tests/unit/ini_config/ini_config.cpp @@ -66,7 +66,7 @@ end: int main(int argc, char **argv) { - char *path = NULL; + char *path = nullptr; int ret; struct state state = {}; @@ -87,7 +87,7 @@ int main(int argc, char **argv) plan_no_plan(); ret = config_get_section_entries( - path, NULL, (config_entry_handler_cb) entry_handler, &state); + path, nullptr, (config_entry_handler_cb) entry_handler, &state); ok(ret == 0, "Successfully opened a config file, registered to all sections"); ok(state.section_1 && state.section_2 && state.section_3 && state.section_global, "Processed entries from each sections");