forked from osmocom/wireshark
From yami:
The code in wiretap/wtap.c is not right. Because g_array_append_val should accept a value of type 'struct encap_type_info' rather than a pointer to this type. svn path=/trunk/; revision=26816
This commit is contained in:
parent
e326300ef3
commit
fe42d6af0a
|
@ -455,15 +455,16 @@ int wtap_get_num_encap_types(void) {
|
|||
|
||||
|
||||
int wtap_register_encap_type(char* name, char* short_name) {
|
||||
struct encap_type_info* e = g_malloc(sizeof(struct encap_type_info));
|
||||
struct encap_type_info e;
|
||||
wtap_init_encap_types();
|
||||
|
||||
e->name = g_strdup(name);
|
||||
e->short_name = g_strdup(short_name);
|
||||
e.name = g_strdup(name);
|
||||
e.short_name = g_strdup(short_name);
|
||||
|
||||
g_array_append_val(encap_table_arr,e);
|
||||
|
||||
encap_table = (void*)encap_table_arr->data;
|
||||
|
||||
return wtap_num_encap_types++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue