Skip to content

Commit

Permalink
Optimize r_strbuf_init ##util
Browse files Browse the repository at this point in the history
  • Loading branch information
condret committed Nov 30, 2024
1 parent 988ddeb commit 60b0b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/util/strbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ R_API int r_strbuf_length(RStrBuf *sb) {

R_API void r_strbuf_init(RStrBuf *sb) {
R_RETURN_IF_FAIL (sb);
memset (sb, 0, sizeof (RStrBuf));
*sb = (const RStrBuf){0};
}

R_API const char *r_strbuf_initf(RStrBuf *sb, const char *fmt, ...) {
Expand Down

0 comments on commit 60b0b19

Please sign in to comment.