forked from osmocom/wireshark
extcap: Allow ASCII '0' in preference name
Update another regex to also allow '0' in the preference name. Change-Id: I61e39a160d86195c989ab53623bc5887a10dcaad Reviewed-on: https://code.wireshark.org/review/30606 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
This commit is contained in:
parent
5d7199d8ce
commit
d2227b768e
2
extcap.c
2
extcap.c
|
@ -743,7 +743,7 @@ static gboolean cb_preference(extcap_callback_info_t cb_info)
|
|||
GList *walker = arguments;
|
||||
|
||||
GRegex *regex_name = g_regex_new("[-]+", (GRegexCompileFlags) 0, (GRegexMatchFlags) 0, NULL);
|
||||
GRegex *regex_ifname = g_regex_new("(?![a-zA-Z1-9_]).", (GRegexCompileFlags) 0, (GRegexMatchFlags) 0, NULL);
|
||||
GRegex *regex_ifname = g_regex_new("(?![a-zA-Z0-9_]).", (GRegexCompileFlags) 0, (GRegexMatchFlags) 0, NULL);
|
||||
if (regex_name && regex_ifname)
|
||||
{
|
||||
while (walker != NULL)
|
||||
|
|
Loading…
Reference in New Issue