commit | ddc3e9e55de965432946c7d13c52756f71eb06b5 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sat Nov 26 15:55:59 2016 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Sat Nov 26 15:58:37 2016 +0100 |
tree | 47af08041db3c0859122471bf9c8baf91a9d1c7f | |
parent | b3e111b4fd99137b6b8c4d687282a497ed082111 [diff] |
BUG/MINOR: stats: make field_str() return an empty string on NULL It already returns an empty string when the field is empty, but as a preventive measure we should do the same when the string itself is a NULL. While it is not supposed to happen, it will make the code more resistant against failed allocations and unexpected results. This fix should be backported to 1.7.