diff --git a/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c b/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c index b150c3916..fdc160b8d 100644 --- a/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c +++ b/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c @@ -297,6 +297,7 @@ gp_port_info_list_lookup_path (GPPortInfoList *list, const char *path) /* Compile the pattern */ #if HAVE_GNU_REGEX + re_syntax_options = RE_SYNTAX_POSIX_EXTENDED; reb.allocated = 0; reb.buffer = NULL; reb.fastmap = NULL;