Skip to content

Commit

Permalink
Remove stray while loop
Browse files Browse the repository at this point in the history
Apparently I missed this when refactoring a do/while loop into a
standard while loop. It was a harmless extra invocation to check if the
stack was empty.
  • Loading branch information
davisp committed Jan 21, 2013
1 parent 3b6a132 commit 97d8269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c_src/encoder.c
Expand Up @@ -705,7 +705,7 @@ encode(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
goto done;
}
}
} while(!enif_is_empty_list(env, stack));
}

if(!enc_done(e, &item)) {
ret = enc_error(e, "internal_error");
Expand Down

0 comments on commit 97d8269

Please sign in to comment.