Feature #2059 ยป 0039-comments.c-Replace-NULL-with-nullptr.patch
| tools/ruleutil/comments.c | ||
|---|---|---|
|
fullpath = fileinfoname(get_data_dirs(), "ruledit/" COMMENTS_FILE_NAME);
|
||
|
if (fullpath == NULL) {
|
||
|
if (fullpath == nullptr) {
|
||
|
log_error(_("Can't find the comments file"));
|
||
|
return FALSE;
|
||
|
}
|
||
|
comment_file = secfile_load(fullpath, FALSE);
|
||
|
if (comment_file == NULL) {
|
||
|
if (comment_file == nullptr) {
|
||
|
log_error(_("Can't parse the comments file"));
|
||
|
return FALSE;
|
||
|
}
|
||
| ... | ... | |
|
static void comment_write(struct section_file *sfile, const char *comment,
|
||
|
const char *name)
|
||
|
{
|
||
|
if (comment == NULL) {
|
||
|
if (comment == nullptr) {
|
||
|
log_error(_("Comment for %s missing."), name);
|
||
|
return;
|
||
|
}
|
||
| ... | ... | |
|
static void comment_entry_write(struct section_file *sfile,
|
||
|
const char *comment, const char *section)
|
||
|
{
|
||
|
if (comment == NULL) {
|
||
|
if (comment == nullptr) {
|
||
|
log_error(_("Comment to section %s missing."), section);
|
||
|
return;
|
||
|
}
|
||