Skip to content

Commit

Permalink
Suppress a warning (gcc-4.7).
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Dec 10, 2012
1 parent 23ec390 commit 50ec934
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/string_builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ class StringBuilder {
!resize_buf(this->length() + length + 1)) {
length = size_left;
failed_ = true;
if (length == 0) {
return *this;
}
}
}

Expand Down

0 comments on commit 50ec934

Please sign in to comment.