From 7ee8211d727e96aa7b8b818f9e3c2fb9c80c9ae1 Mon Sep 17 00:00:00 2001 From: John Jenkins Date: Fri, 14 Feb 2014 15:47:09 -0600 Subject: [PATCH] oopsie on lp-io reverse --- src/util/lp-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/lp-io.c b/src/util/lp-io.c index 381ec56..6f31ce1 100644 --- a/src/util/lp-io.c +++ b/src/util/lp-io.c @@ -144,7 +144,7 @@ int lp_io_write_rev(tw_lpid gid, char* identifier){ } /* remove the buffer from the list * (NULLs for end-of-list are preserved) */ - if (buf == id->buffers) { /* buf is head of list */ + else if (buf == id->buffers) { /* buf is head of list */ id->buffers = buf->next; } else { /* buf is in list, has a previous element */ -- 2.26.2