string.c: swap calloc arguments

master
Bor Grošelj Simić 4 years ago committed by Drew DeVault
parent 1645e3c681
commit 8b0142c229
  1. 2
      src/string.c

@ -16,7 +16,7 @@ static int ensure_capacity(struct str *str, size_t len) {
}
struct str *str_create() {
struct str *str = calloc(sizeof(struct str), 1);
struct str *str = calloc(1, sizeof(struct str));
str->str = malloc(16);
str->size = 16;
str->len = 0;

Loading…
Cancel
Save