<p style="white-space: pre-wrap; word-wrap: break-word;">looks great.  Makes sense to also check our other regcomp invocations, as (I think) we don't need the position of matches in all cases:</p><p style="white-space: pre-wrap; word-wrap: break-word;">openbsc/contrib/nat/test_regexp.c:      if (regcomp(&reg, argv[1], REG_EXTENDED) != 0) {<br>openbsc/src/libcommon/gsm_data.c:               ret = regcomp(reg, argv[0], 0);<br>openbsc/src/osmo-bsc_nat/bsc_nat_rewrite.c:             if (regcomp(&entry->msisdn_reg, regexp, 0) != 0) {<br>openbsc/src/osmo-bsc_nat/bsc_nat_rewrite.c:             if (regcomp(&entry->num_reg, cfg_entry->option, REG_EXTENDED) != 0) {<br>osmo-bsc/src/osmo-bsc/gsm_data.c:                ret = regcomp(reg, argv[0], 0);<br>osmo-sgsn/src/gprs/gb_proxy_patch.c:      rc = regcomp(&match->re_comp, filter,</p><p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #d4ffd4;">Code-Review +2</span></p><p><a href="https://gerrit.osmocom.org/13536">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/13536">change 13536</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/13536"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Id55ffe64cc1a35dd83f61dbb0f9828aa676696f9 </div>
<div style="display:none"> Gerrit-Change-Number: 13536 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Comment-Date: Sat, 06 Apr 2019 16:17:06 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>