aboutsummaryrefslogtreecommitdiffstats
path: root/extcap.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2018-11-13 19:05:50 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2018-11-13 18:08:02 +0000
commitd2227b768ed50b50a2325c8521de4605bb7be78f (patch)
tree8c79d1b0042a18955a19576e0fba09075f3c6671 /extcap.c
parent5d7199d8cedc31d5bb24d9f5c25aa9c4dab80669 (diff)
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>
Diffstat (limited to 'extcap.c')
-rw-r--r--extcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extcap.c b/extcap.c
index ed3288be7b..8bab624eed 100644
--- a/extcap.c
+++ b/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)