Patch Set 1:

(1 comment)

https://gerrit.osmocom.org/#/c/4156/1/src/gsm/gsm23003.c
File src/gsm/gsm23003.c:

Line 36:        for (len = 0; pos && *pos && len < max_digits; len++, pos++)
> a NULL str may still return true when min_digits == 0. Ah, this reminds me 
ah, nonsense, the osmo_{msisdn,imsi}_valid never call it with min_digits <= 0. 
If is_n_digits() were available to more users, the current patch would make 
sense. As it is now you are probably right to complain. It came to be this way 
because I copied from G#4159 without considering that this one is static and we 
know all the callers.


-- 
To view, visit https://gerrit.osmocom.org/4156
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I111fbf29228929f2cd6ffa06bcb1f69da223224e
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <[email protected]>
Gerrit-Reviewer: Neels Hofmeyr <[email protected]>
Gerrit-HasComments: Yes

Reply via email to