Actions
Bug #8135
closedlibfru: char Str::tokenize should return NUL char, not NULL pointer
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