Skip to content

Commit

Permalink
Change code to handle empty vector (#2840)
Browse files Browse the repository at this point in the history
  • Loading branch information
meyertst-aws authored Feb 6, 2024
1 parent 9e1eb51 commit 9f86505
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ namespace Aws
return std::char_traits<char>::eof();
}

char* gbegin = reinterpret_cast<char*>(&m_getArea[0]);
char* gbegin = reinterpret_cast<char*>(m_getArea.data());
setg(gbegin, gbegin, gbegin + m_getArea.size());

if (!m_getArea.empty())
Expand Down

0 comments on commit 9f86505

Please sign in to comment.