Skip to content

Commit

Permalink
remove unnecessary code
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Downs <brian.downs@gmail.com>
  • Loading branch information
briandowns committed Apr 4, 2021
1 parent e6e7e55 commit f5f156d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dot_env.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,9 @@ env_load(const char *path, const int overwrite)
if (COMMENT_CHAR == line[0] || isspace(line[0])) {
continue;
}

char *token = line;
char *key = strsep(&token, SEPERATOR);
char *value = strsep(&token, NEW_LINE);

char *key = strsep(&line, SEPERATOR);
char *value = strsep(&line, NEW_LINE);

replace_double_quotes(value);

Expand Down

0 comments on commit f5f156d

Please sign in to comment.