SMOLNET PORTAL home about changes
ionly set dlen if data is non-NULL - teed - A multiplex relay tee(1) daemon.	Err	bitreich.org	70
hgit clone git://bitreich.org/teed git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/teed	URL:git://bitreich.org/teed git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/teed	bitreich.org	70
1Log	/scm/teed/log.gph	bitreich.org	70
1Files	/scm/teed/files.gph	bitreich.org	70
1Refs	/scm/teed/refs.gph	bitreich.org	70
1Tags	/scm/teed/tag	bitreich.org	70
1README	/scm/teed/file/README.md.gph	bitreich.org	70
1LICENSE	/scm/teed/file/LICENSE.gph	bitreich.org	70
i---	Err	bitreich.org	70
1commit 108ea8962d23bdccac4e5cfd60dc179a1cea300a	/scm/teed/commit/108ea8962d23bdccac4e5cfd60dc179a1cea300a.gph	bitreich.org	70
1parent 81543713efc69529db9bbcbd90e0b16a4481a45f	/scm/teed/commit/81543713efc69529db9bbcbd90e0b16a4481a45f.gph	bitreich.org	70
hAuthor: Hiltjo Posthuma <hiltjo@codemadness.org>	URL:mailto:hiltjo@codemadness.org	bitreich.org	70
iDate:   Mon, 14 Aug 2023 15:10:09 +0200	Err	bitreich.org	70
i	Err	bitreich.org	70
ionly set dlen if data is non-NULL	Err	bitreich.org	70
i	Err	bitreich.org	70
iSigned-off-by: Christoph Lohmann <20h@r-36.net>	Err	bitreich.org	70
i	Err	bitreich.org	70
iDiffstat:	Err	bitreich.org	70
i  M teed.c                              |       8 +++++---	Err	bitreich.org	70
i	Err	bitreich.org	70
i1 file changed, 5 insertions(+), 3 deletions(-)	Err	bitreich.org	70
i---	Err	bitreich.org	70
1diff --git a/teed.c b/teed.c	/scm/teed/file/teed.c.gph	bitreich.org	70
i@@ -87,11 +87,13 @@ llist_new(llist *prev, llist *next, void *data, int len)	Err	bitreich.org	70
i         }	Err	bitreich.org	70
i         ret->prev = prev;	Err	bitreich.org	70
i         ret->next = next;	Err	bitreich.org	70
i-        ret->dlen = len;	Err	bitreich.org	70
i-        if (data != NULL)	Err	bitreich.org	70
i+        if (data != NULL) {	Err	bitreich.org	70
i                 ret->data = memdup(data, len);	Err	bitreich.org	70
i-        else	Err	bitreich.org	70
i+                ret->dlen = len;	Err	bitreich.org	70
i+        } else {	Err	bitreich.org	70
i                 ret->data = NULL;	Err	bitreich.org	70
i+                ret->dlen = 0;	Err	bitreich.org	70
i+        }	Err	bitreich.org	70
i 	Err	bitreich.org	70
i         return ret;	Err	bitreich.org	70
i }	Err	bitreich.org	70
.
Response: text/plain
Original URLgopher://bitreich.org/0/scm/teed/commit/108ea8962d23bdcca...
Content-Typetext/plain; charset=utf-8