xinxinlx / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

self assignment in cio.c #273

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
look carefully at this code block:  

        /* we should flush data */
    l_is_written = opj_stream_flush (p_stream, p_event_mgr);
    if (! l_is_written) {
        p_stream->m_status |= opj_stream_e_error;
        p_stream->m_bytes_in_buffer = 0;
        p_stream->m_current_data = p_stream->m_current_data;
        return (OPJ_OFF_T) -1;
    }

This was caught by latest Eclipse CDT 8.3

Original issue reported on code.google.com by boxe...@gmail.com on 5 Mar 2014 at 3:22

GoogleCodeExporter commented 9 years ago

Original comment by mathieu.malaterre on 7 Mar 2014 at 9:12

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2608.

Original comment by mathieu.malaterre on 7 Mar 2014 at 9:33