Skip to content

Commit

Permalink
better string iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
kentslaney committed Nov 29, 2023
1 parent 6c36996 commit f4cc59f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ bool isLocalSocket(const char* host) {

ServerSpec splitServerString(char* input) {
bool escaped = false;
ServerSpec res = { input--, NULL, NULL };
for (;;) {
switch (*(++input))
ServerSpec res = { input, NULL, NULL };
for (;input++;) {
switch (*input)
{
case '\0':
return res;
Expand Down

0 comments on commit f4cc59f

Please sign in to comment.