]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: use temp var in i_stream_unref for clarity
authorJosef 'Jeff' Sipek <jeff.sipek@dovecot.fi>
Fri, 3 Nov 2017 12:38:39 +0000 (08:38 -0400)
committerJosef 'Jeff' Sipek <jeff.sipek@dovecot.fi>
Thu, 9 Nov 2017 18:52:25 +0000 (13:52 -0500)
src/lib/istream.c

index 1b08d57e1a967ef3aa66544600bea0eaf2b9ec3e..3019d31795a68741e52241707f0ddbaacc07f660 100644 (file)
@@ -57,12 +57,12 @@ void i_stream_unref(struct istream **stream)
 
        _stream = (*stream)->real_stream;
 
-       if (!io_stream_unref(&(*stream)->real_stream->iostream)) {
+       if (!io_stream_unref(&_stream->iostream)) {
                if (_stream->line_str != NULL)
                        str_free(&_stream->line_str);
                i_stream_snapshot_free(&_stream->prev_snapshot);
-               i_stream_unref(&(*stream)->real_stream->parent);
-               io_stream_free(&(*stream)->real_stream->iostream);
+               i_stream_unref(&_stream->parent);
+               io_stream_free(&_stream->iostream);
        }
        *stream = NULL;
 }