Mercurial > hg > nnchat
diff ui.c @ 634:5269a8cdbd96
Use th_malloc0(n) instead of th_calloc(1, n).
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 22 Jun 2014 03:32:39 +0300 |
parents | 2c6945599b16 |
children | fc19ab0334b1 |
line wrap: on
line diff
--- a/ui.c Sun Jun 22 02:12:37 2014 +0300 +++ b/ui.c Sun Jun 22 03:32:39 2014 +0300 @@ -28,7 +28,7 @@ static nn_window_t *nn_window_new(const char *id) { - nn_window_t *res = th_calloc(1, sizeof(nn_window_t)); + nn_window_t *res = th_malloc0(sizeof(nn_window_t)); if (res == NULL) return NULL; @@ -261,7 +261,7 @@ { if (win->line == NULL) { - win->line = th_calloc(1, sizeof(nn_line_t)); + win->line = th_malloc0(sizeof(nn_line_t)); if (win->line == NULL) return -15; }