Skip to content

Commit

Permalink
gfapi: Rename variable from new_entry to entry.
Browse files Browse the repository at this point in the history
Use the same naming as in the other pop from stack case. Only call the
entry new_entry when we push the entry onto the stack.
  • Loading branch information
Marco van Wieringen committed Mar 6, 2016
1 parent 7399408 commit bb0653f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/plugins/filed/gfapi-fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ static bRC get_next_file_to_backup(bpContext *ctx)
* See if there is anything on the dir stack to pop off and continue reading that directory.
*/
if (!p_ctx->dir_stack->empty()) {
struct dir_stack_entry *new_entry;
struct dir_stack_entry *entry;

/*
* Change the GLFS cwd back one dir.
Expand All @@ -457,10 +457,10 @@ static bRC get_next_file_to_backup(bpContext *ctx)
/*
* Pop the previous directory handle and continue processing that.
*/
new_entry = (struct dir_stack_entry *)p_ctx->dir_stack->pop();
memcpy(&p_ctx->statp, &new_entry->statp, sizeof(p_ctx->statp));
p_ctx->gdir = new_entry->gdir;
free(new_entry);
entry = (struct dir_stack_entry *)p_ctx->dir_stack->pop();
memcpy(&p_ctx->statp, &entry->statp, sizeof(p_ctx->statp));
p_ctx->gdir = entry->gdir;
free(entry);
} else {
return bRC_OK;
}
Expand Down

0 comments on commit bb0653f

Please sign in to comment.