summaryrefslogtreecommitdiff
path: root/libbcachefs/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/util.h')
-rw-r--r--libbcachefs/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbcachefs/util.h b/libbcachefs/util.h
index 98f70a5c..0bff1e01 100644
--- a/libbcachefs/util.h
+++ b/libbcachefs/util.h
@@ -305,7 +305,7 @@ static inline void pr_indent_pop(struct printbuf *buf, unsigned spaces)
{
if (buf->last_newline + buf->indent == buf->pos) {
buf->pos -= spaces;
- buf->buf[buf->pos] = 0;
+ buf->buf[buf->pos] = '\0';
}
buf->indent -= spaces;
}