Skip to content

Commit

Permalink
Change: include predefined in check for WRITABLE in GET_CONFIGS
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmundell authored and a-h-abdelsalam committed Sep 4, 2024
1 parent 1a59461 commit 49cb75a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/manage_sql_configs.c
Original file line number Diff line number Diff line change
Expand Up @@ -3316,12 +3316,12 @@ config_in_use (config_t config)
*
* @param[in] config Config.
*
* @return 1.
* @return 1 if writable, else 0.
*/
int
config_writable (config_t config)
{
return 1;
return config_predefined (config) ? 0 : 1;

Check warning on line 3324 in src/manage_sql_configs.c

View check run for this annotation

Codecov / codecov/patch

src/manage_sql_configs.c#L3324

Added line #L3324 was not covered by tests
}

/**
Expand Down

0 comments on commit 49cb75a

Please sign in to comment.