Skip to content

Commit

Permalink
sync with version in ddcutil source tree
Browse files Browse the repository at this point in the history
  • Loading branch information
rockowitz committed Nov 25, 2021
1 parent 2ec3d21 commit 448ee8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/c_util/simple_ini_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ bool is_kv(char * s, char ** key_loc, char ** value_loc) {
if (debug)
printf("(%s) Starting. s->|%s|\n", __func__, s);
bool result = false;
char * colon = index(s,':');
char * colon = strchr(s,':');
if (!colon)
colon = index(s,'=');
colon = strchr(s,'=');
if (colon) {
char * untrimmed_key = substr(s, 0, colon-s); // allocates untrimmed_key
char * key = strtrim( untrimmed_key ); // allocates key
Expand Down

0 comments on commit 448ee8a

Please sign in to comment.