Improve readability with getHandle inline
Fork of BLE_API by
Diff: services/URIBeaconConfigService.h
- Revision:
- 213:ac3b745af1d0
- Parent:
- 212:852d45a52016
- Child:
- 214:7d79fa197212
--- a/services/URIBeaconConfigService.h Mon Dec 01 14:31:18 2014 +0000 +++ b/services/URIBeaconConfigService.h Mon Dec 01 14:31:18 2014 +0000 @@ -182,6 +182,10 @@ } size_t encodeURISchemePrefix(const char *&urldata, size_t &sizeofURLData) { + if (!sizeofURLData) { + return 0; + } + const char *prefixes[] = { "http://www.", "https://www.",