Skip to content

Commit

Permalink
Declare and assign renamed_key in one line
Browse files Browse the repository at this point in the history
  • Loading branch information
HuidaeCho committed Dec 6, 2023
1 parent 0253238 commit 0a1de27
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/gis/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1225,9 +1225,8 @@ void set_option(const char *string)

/* First, check if key has been renamed */
if (found == 0) {
const char *renamed_key = NULL;
const char *renamed_key = get_renamed_option(the_key);

renamed_key = get_renamed_option(the_key);
if (renamed_key) {
/* if renamed to a new flag (option value given but will be lost),
* fatal error */
Expand Down

0 comments on commit 0a1de27

Please sign in to comment.