laforge has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/14856


Change subject: virtphy: Handle strtok() returning NULL on first call
......................................................................

virtphy: Handle strtok() returning NULL on first call

Change-Id: I37bfb91cf75982bfa2f75bd62d0c13859268cd93
Closes: CID#198565
---
M src/host/virt_phy/src/virtphy.c
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/56/14856/1

diff --git a/src/host/virt_phy/src/virtphy.c b/src/host/virt_phy/src/virtphy.c
index 118e8a1..d0a2ddb 100644
--- a/src/host/virt_phy/src/virtphy.c
+++ b/src/host/virt_phy/src/virtphy.c
@@ -153,6 +153,8 @@
                return;

        char *token = strtok(arfcn_sig_lev_red_mask, ":");
+       if (!token)
+               return;
        do {
                char* colon = strstr(token, ",");
                uint16_t arfcn;

--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/14856
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I37bfb91cf75982bfa2f75bd62d0c13859268cd93
Gerrit-Change-Number: 14856
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <[email protected]>
Gerrit-MessageType: newchange

Reply via email to