Skip to content

Commit

Permalink
main,refactor: narrow the scopes of local variables
Browse files Browse the repository at this point in the history
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
  • Loading branch information
masatake committed May 31, 2023
1 parent 08f10d2 commit cbe6b57
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -2307,9 +2307,7 @@ static void freeSearchPathList (searchPathList** pathList)
static vString* expandOnSearchPathList (searchPathList *pathList, const char* leaf,
bool (* check) (const char *const))
{
unsigned int i;

for (i = stringListCount (pathList); i > 0; --i)
for (unsigned int i = stringListCount (pathList); i > 0; --i)
{
const char* const body = vStringValue (stringListItem (pathList, i - 1));
char* tmp = combinePathAndFile (body, leaf);
Expand Down

0 comments on commit cbe6b57

Please sign in to comment.