Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
Revision 213:ac3b745af1d0, committed 2014-12-01
- Comitter:
- rgrover1
- Date:
- Mon Dec 01 14:31:18 2014 +0000
- Parent:
- 212:852d45a52016
- Child:
- 214:7d79fa197212
- Commit message:
- Synchronized with git rev 0c38a1e8
Author: Rohit Grover
fast path for encodeURISchemePrefix() if sizeofURLData is 0
Changed in this revision
| services/URIBeaconConfigService.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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.",
