(svn r20211) -Codechange: Indented code should have curly braces around it.

This commit is contained in:
alberth
2010-07-24 10:14:39 +00:00
parent 645b6ce773
commit be6c058424
49 changed files with 206 additions and 177 deletions

View File

@@ -263,12 +263,14 @@ public:
tmp->capacity = new_size - (header_size + tail_reserve);
/* copy existing data */
if (tmp->items != 0)
if (tmp->items != 0) {
memcpy(tmp + 1, data, tmp->items);
}
/* replace our block with new one */
if (Capacity() > 0)
if (Capacity() > 0) {
RawFree(&Hdr());
}
Init(tmp);
}