diff options
author | 1987-06-12 14:40:30 +0000 | |
---|---|---|
committer | 1987-06-12 14:40:30 +0000 | |
commit | 7c96d2518add818fa48b80fa9cabd72675d5fd52 (patch) | |
tree | e39d6095ca85e6cadbe34438a46f40d6e77e6bd9 | |
parent | eb6a8038a1f4a6a05c4292f5cac070850564c93b (diff) |
Fixed error return bug
-rw-r--r-- | lib/ZFmtList.c | 3 | ||||
-rw-r--r-- | lib/ZFmtNotice.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/ZFmtList.c b/lib/ZFmtList.c index 9a0aaa8..a54a465 100644 --- a/lib/ZFmtList.c +++ b/lib/ZFmtList.c @@ -29,7 +29,8 @@ Code_t ZFormatNoticeList(notice,list,nitems,buffer,buffer_len,ret_len) end = buffer+buffer_len; - if ((retval = Z_FormatHeader(notice,buffer,buffer_len,ret_len)) > 0) + if ((retval = Z_FormatHeader(notice,buffer,buffer_len,ret_len)) != + ZERR_NONE) return (retval); ptr = buffer+*ret_len; diff --git a/lib/ZFmtNotice.c b/lib/ZFmtNotice.c index e1d3e7b..f2f9f2d 100644 --- a/lib/ZFmtNotice.c +++ b/lib/ZFmtNotice.c @@ -26,7 +26,8 @@ Code_t ZFormatNotice(notice,buffer,buffer_len,len) int hdrlen; Code_t retval; - if ((retval = Z_FormatHeader(notice,buffer,buffer_len,&hdrlen)) > 0) + if ((retval = Z_FormatHeader(notice,buffer,buffer_len,&hdrlen)) != + ZERR_NONE) return (retval); ptr = buffer+hdrlen; |