From e629181f5a91a933bb96feaa1189481c81fa55ac Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Thu, 22 Jan 2015 21:04:16 +0100 Subject: [PATCH] Fixed issue where -1 size_t was returned --- client/graph.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/graph.c b/client/graph.c index 269c2dd9..94d6054f 100644 --- a/client/graph.c +++ b/client/graph.c @@ -66,7 +66,7 @@ void setGraphBuf(uint8_t *buff, size_t size) } size_t getFromGraphBuf(uint8_t *buff) { - if ( buff == NULL ) return -1; + if ( buff == NULL ) return 0; uint32_t i; for (i=0;i