diff options
| author | Mark Murray <markm@FreeBSD.org> | 2004-03-05 08:10:19 +0000 |
|---|---|---|
| committer | Mark Murray <markm@FreeBSD.org> | 2004-03-05 08:10:19 +0000 |
| commit | 16fc3635f7aec3852abfc6dd77f89baef91f22fa (patch) | |
| tree | 524ae0ef30bcdfacb05b3c2b01e1c48e80d93e3b /lib/libbluetooth/bluetooth.c | |
| parent | 5af2e7de06321c8f6aaa876fa79bf08870e8911c (diff) | |
Notes
Diffstat (limited to 'lib/libbluetooth/bluetooth.c')
| -rw-r--r-- | lib/libbluetooth/bluetooth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libbluetooth/bluetooth.c b/lib/libbluetooth/bluetooth.c index 4678509541fb..f206aeeee4d8 100644 --- a/lib/libbluetooth/bluetooth.c +++ b/lib/libbluetooth/bluetooth.c @@ -291,7 +291,7 @@ bt_aton(char const *str, bdaddr_t *ba) memset(ba, 0, sizeof(*ba)); for (i = 5, end = strchr(str, ':'); - i > 0 && *str != NULL && end != NULL; + i > 0 && *str != '\0' && end != NULL; i --, str = end + 1, end = strchr(str, ':')) { switch (end - str) { case 1: |
