From: Martin Holst Swende Date: Thu, 22 Jan 2015 20:04:16 +0000 (+0100) Subject: Fixed issue where -1 size_t was returned X-Git-Tag: v2.0.0-rc1~44^2~1 X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/e629181f5a91a933bb96feaa1189481c81fa55ac Fixed issue where -1 size_t was returned --- 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