Project

General

Profile

Actions

Bug #8135

closed

libfru: char Str::tokenize should return NUL char, not NULL pointer

Added by Toomas Soome about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2017-05-01
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

This is small fallout from 8017 Comply with POSIX.1-2008 and C++11 for the definition of NULL, building with gcc 6 reveals:

../libgenutil/Str.cc: In member function 'char Str::tokenize(Str&, const Str&, Str&)':
../libgenutil/Str.cc:174:14: error: cannot convert 'std::nullptr_t' to 'char' in return
return (NULL);

Which of course is bug in the code, we should return '\0' here.

Actions

Also available in: Atom PDF