summaryrefslogtreecommitdiff
path: root/code/core/msgq.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2017-08-10 21:02:16 +0200
committerUros Majstorovic <majstor@majstor.org>2017-08-10 21:02:16 +0200
commitcbba099541d27400ad45083a4b1102b86f9e8dea (patch)
treee260d7da3d07b4de0e989726917f08d23c55f70d /code/core/msgq.c
parente9ced8e60689c6f46ac4fc31013b88f4c3f4fa80 (diff)
rbuffer almost implemented
Diffstat (limited to 'code/core/msgq.c')
-rw-r--r--code/core/msgq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/core/msgq.c b/code/core/msgq.c
index 53c55ea..2ba0ed5 100644
--- a/code/core/msgq.c
+++ b/code/core/msgq.c
@@ -62,7 +62,7 @@ ssize_t ecp_conn_msgq_push(ECPConnection *conn, unsigned char *msg, size_t msg_s
if (mtype >= ECP_MAX_MTYPE) return ECP_ERR_MAX_MTYPE;
if (msg_size >= ECP_MAX_MSG) return ECP_ERR_MAX_MSG;
- if (msg_size < ECP_MIN_MSG) return ECP_ERR_MIN_MSG;
+ if (msg_size < 1) return ECP_ERR_MIN_MSG;
for (i=0; i<ECP_MAX_CONN_MSG; i++) {
if (!msgq->occupied[msg_idx]) {