const char *context_fmt,
va_list args)
{
- char *str = NULL;
- char *str_ret = NULL;
+ char *str = nullptr;
+ char *str_ret = nullptr;
int ret;
if (context_fmt) {
* If vasprintf fails, the content of str is undefined,
* and we shouldn't try to free it.
*/
- str = NULL;
+ str = nullptr;
goto end;
}
}
str_ret = str;
- str = NULL;
+ str = nullptr;
end:
free(str);
...)
{
enum argpar_iter_next_status status;
- const struct argpar_error *error = NULL;
+ const struct argpar_error *error = nullptr;
enum parse_next_item_status ret;
ARGPAR_ITEM_DESTROY_AND_RESET(*item);
if (error_out) {
argpar_error_destroy(*error_out);
*error_out = error;
- error = NULL;
+ error = nullptr;
}
argpar_error_destroy(error);