Skip to content

Commit

Permalink
dialog: rename function parameter to avoid shadowing of global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Dec 28, 2023
1 parent 4b86232 commit 23a1d06
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/dialog/dlg_profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,21 @@ static sruid_t _dlg_profile_sruid;
/*!
* \brief Add profile definitions to the global list
* \see new_dlg_profile
* \param profiles profile name
* \param profiledef profile name
* \param has_value set to 0 for a profile without value, otherwise it has a value
* \return 0 on success, -1 on failure
*/
int add_profile_definitions(char *profiles, unsigned int has_value)
int add_profile_definitions(char *profiledef, unsigned int has_value)
{
char *p;
char *d;
str name;
unsigned int i;

if(profiles == NULL || strlen(profiles) == 0)
if(profiledef == NULL || strlen(profiledef) == 0)
return 0;

p = profiles;
p = profiledef;
do {
/* locate name of profile */
name.s = p;
Expand Down

0 comments on commit 23a1d06

Please sign in to comment.