Skip to content

Commit 5fc262c

Browse files
committed
fix: do not call input.front() if empty
1 parent ecd9524 commit 5fc262c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/ada/url_search_params-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
namespace ada {
2020

2121
inline void url_search_params::initialize(std::string_view input) {
22-
if (input.front() == '?') {
22+
if (!input.empty() && input.front() == '?') {
2323
input.remove_prefix(1);
2424
}
2525

0 commit comments

Comments
 (0)