Replaced 0 literals by more explicit '\0' and NULL

This commit is contained in:
Benoit Blanchon
2014-11-03 17:03:55 +01:00
parent c1c63067d4
commit 1ce6d663af
5 changed files with 12 additions and 13 deletions

View File

@@ -14,7 +14,7 @@ class StringBuilder : public Print {
public:
StringBuilder(char *buf, int size)
: buffer(buf), capacity(size - 1), length(0) {
buffer[0] = 0;
buffer[0] = '\0';
}
virtual size_t write(uint8_t c);