From 654b47df33d6e1e6c73376393c2d4e9ad2a86baf Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Mon, 21 Oct 2019 17:18:03 +0300 Subject: diagnostic: allow reseting output stream. We previously treated trying to set channel's stream to NULL as an invalid request, while a completely valid use-case for this is to allow resetting the stream to whichever default it uses. Signed-off-by: Gediminas Jakutis --- src/diagnostic/diagnostic.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/diagnostic/diagnostic.c') diff --git a/src/diagnostic/diagnostic.c b/src/diagnostic/diagnostic.c index c0ee294..4d67573 100644 --- a/src/diagnostic/diagnostic.c +++ b/src/diagnostic/diagnostic.c @@ -48,10 +48,6 @@ int rin_diag_flags(int flag, int action) int rin_diag_set_outstream(enum rin_diag_outstream channel, FILE *stream) { - if (!stream) { - return EINVAL; - } - switch (channel) { case rin_diag_err: state.err = stream; -- cgit v1.2.3