From 16e023aa3eb495a4b48af1784e5e78dcf4e9ba0b Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Thu, 10 Apr 2014 20:02:27 +0300 Subject: [PATCH] Assert and whitespace. --- client/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/client.c b/client/client.c index 4419967..4bdfdc6 100644 --- a/client/client.c +++ b/client/client.c @@ -63,6 +63,8 @@ static ptrdiff_t getLine(char **outLine, size_t *outAllocated, FILE *stream) static void readItemsToMenuFromStdin(bmMenu *menu) { + assert(menu); + ptrdiff_t len; size_t size = 0; char *line = NULL; @@ -84,7 +86,6 @@ int main(int argc, char **argv) (void)argc, (void)argv; bmMenu *menu = bmMenuNew(BM_DRAW_MODE_CURSES); - if (!menu) return EXIT_FAILURE; @@ -107,7 +108,6 @@ int main(int argc, char **argv) } bmMenuFree(menu); - return (status == BM_RUN_RESULT_SELECTED ? EXIT_SUCCESS : EXIT_FAILURE); }