From: Mykola Golub Date: Sat, 25 Feb 2017 16:42:42 +0000 (+0100) Subject: msg: end parameter in entity_addr_t::parse is optional X-Git-Tag: v12.0.1~247^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F13650%2Fhead;p=ceph.git msg: end parameter in entity_addr_t::parse is optional Signed-off-by: Mykola Golub --- diff --git a/src/msg/msg_types.cc b/src/msg/msg_types.cc index 1d118e9455c..67a699c9c4d 100644 --- a/src/msg/msg_types.cc +++ b/src/msg/msg_types.cc @@ -76,7 +76,9 @@ bool entity_addr_t::parse(const char *s, const char **end) newtype = TYPE_MSGR2; } else if (*s == '-') { *this = entity_addr_t(); - *end = s + 1; + if (end) { + *end = s + 1; + } return true; }