From 97d8269aecd9520e5764274e1cf5f995863bb242 Mon Sep 17 00:00:00 2001 From: "Paul J. Davis" Date: Mon, 21 Jan 2013 11:08:54 -0600 Subject: [PATCH] Remove stray while loop 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. --- c_src/encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c_src/encoder.c b/c_src/encoder.c index ce71c1b..911b9aa 100644 --- a/c_src/encoder.c +++ b/c_src/encoder.c @@ -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");