wiretap/k12text.l: replace g_malloc with g_new

Replace `g_malloc` with `g_new` to improve
source code readability.
This commit is contained in:
Moshe Kaplan 2020-12-26 22:27:43 -05:00 committed by AndersBroman
parent fe6b774358
commit 5778b2403e
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ k12text_open(wtap *wth, int *err, gchar **err_info)
return WTAP_OPEN_ERROR;
}
k12text = (k12text_t *)g_malloc(sizeof(k12text_t));
k12text = g_new(k12text_t, 1);
wth->priv = (void *)k12text;
k12text->next_frame_offset = 0;
wth->file_type_subtype = WTAP_FILE_TYPE_SUBTYPE_K12TEXT;