From eae42094438def9e1da9fb4cf8cb28b4cee025f5 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Fri, 7 Mar 2014 15:33:13 -0600 Subject: Fix error handling in createList Change-Id: I10211f2a20da119ae6a4a1bb2f768a3fa2ab87da --- twrpTar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twrpTar.cpp b/twrpTar.cpp index cc09b78ab..a31fe1221 100644 --- a/twrpTar.cpp +++ b/twrpTar.cpp @@ -621,7 +621,7 @@ int twrpTar::tarList(std::vector *TarList, unsigned thread_id) { void* twrpTar::createList(void *cookie) { twrpTar* threadTar = (twrpTar*) cookie; - if (threadTar->tarList(threadTar->ItemList, threadTar->thread_id) == -1) { + if (threadTar->tarList(threadTar->ItemList, threadTar->thread_id) != 0) { LOGINFO("ERROR tarList for thread ID %i\n", threadTar->thread_id); return (void*)-2; } -- cgit v1.2.3