]> git.draconx.ca Git - liblbx.git/commit
liblbx: Fix uninitialized value warning in pipe_seek.
authorNick Bowler <nbowler@draconx.ca>
Tue, 28 Jan 2014 02:43:42 +0000 (21:43 -0500)
committerNick Bowler <nbowler@draconx.ca>
Tue, 28 Jan 2014 02:43:42 +0000 (21:43 -0500)
commit2caeb2fc3c40ecae99f65b791864381fde3015dc
treef4cdcd3e0664fb7f630dcef79fbb0677baf3e783
parent06a82a827480c9701487b216a20528d160262118
liblbx: Fix uninitialized value warning in pipe_seek.

If whence is invalid then we will proceed with an uninitialized value.
However, unlike the similar problem in lbx_file_seek, pipe_seek is an
internal function so this scenario can Never Happen™.

Add an assertion to silence the warning.
src/fops.c