Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.62 KB | None | 0 0
  1. diff --git a/libs/riutil/multistringbuffer.h b/libs/riutil/multistringbuffer.h
  2. index b45e492..5d4143b 100644
  3. --- a/libs/riutil/multistringbuffer.h
  4. +++ b/libs/riutil/multistringbuffer.h
  5. @@ -86,6 +86,8 @@ class MultiStringBuffer
  6.          /// Convert to an vector of C-strings
  7.          const std::vector<const char*>& toCstringVec() const
  8.          {
  9. +            if(m_offsets.empty())
  10. +                return m_cStrings;
  11.              // iterate through offsets, getting a pointer for each
  12.              // contained string.  We MUST build this once we know
  13.              // we're done with adding things to m_storage, or the
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement