Assert on API violation

This commit is contained in:
Nils O. Selåsdal
2013-12-07 01:30:08 +01:00
parent d26854a632
commit 6a8ba36c23
+1 -1
View File
@@ -99,7 +99,7 @@ uc_dbuf_take(DBuf *buf, size_t len)
} else if (len < buflen) { } else if (len < buflen) {
buf->start = buf->start + len; buf->start = buf->start + len;
} else { } else {
//should maybe assert. This is a serious offence assert(0);
return 1; return 1;
} }