summaryrefslogtreecommitdiffstats
path: root/tests/gsm23003/gsm23003_test.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-10-07 04:45:01 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-10-10 14:38:10 +0000
commit4b7c791e15e921ce5427c531f740df7474c6a1cb (patch)
tree88f296e22010fd692f9f1730791b3c159a1c5657 /tests/gsm23003/gsm23003_test.c
parentf624546ed1336ef2c092a254fddea6b904a9e274 (diff)
gsm: make osmo_imsi_str_valid() NULL-safe
No callers that would pass NULL exist, but let's check against NULL from the start. Fixup for recent change I1e94f5b0717b947d2a7a7d36bacdf04a75cb3522. Change-Id: I111fbf29228929f2cd6ffa06bcb1f69da223224e
Diffstat (limited to 'tests/gsm23003/gsm23003_test.c')
-rw-r--r--tests/gsm23003/gsm23003_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gsm23003/gsm23003_test.c b/tests/gsm23003/gsm23003_test.c
index 682f1626..a408b73d 100644
--- a/tests/gsm23003/gsm23003_test.c
+++ b/tests/gsm23003/gsm23003_test.c
@@ -50,6 +50,7 @@ static struct {
{ "1234567\n123456", false },
{ "123456\t123456", false },
{ "123456\r123456", false },
+ { NULL, false },
};
bool test_valid_imsi()
@@ -92,6 +93,7 @@ static struct {
{ "1234567\n123456", false },
{ "123456\t123456", false },
{ "123456\r123456", false },
+ { NULL, false },
};
bool test_valid_msisdn()