forked from osmocom/wireshark
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:
parent
fe6b774358
commit
5778b2403e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue