Skip to content

Commit

Permalink
Typo in cursor_replace
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Sep 14, 2017
1 parent 3a28992 commit b97577b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/util/cursor.c
Expand Up @@ -458,7 +458,7 @@ void * CC_HINT(hot) fr_cursor_replace(fr_cursor_t *cursor, void *r)
* so the replace becomes an append.
*/
v = cursor->current;
if (v) {
if (!v) {
fr_cursor_append(cursor, r);
return NULL;
}
Expand All @@ -475,9 +475,9 @@ void * CC_HINT(hot) fr_cursor_replace(fr_cursor_t *cursor, void *r)
*NEXT_PTR(r) = *NEXT_PTR(v);
}

/*
* Fixup current pointer.
*/
/*
* Fixup current pointer.
*/
if (v) {
cursor->current = p;
cursor->prev = NULL; /* populated on next call to fr_cursor_next */
Expand Down

0 comments on commit b97577b

Please sign in to comment.