From dff3a597dad3b76990311ee356e0bd603753d8d3 Mon Sep 17 00:00:00 2001 From: Chris Sherlock Date: Sat, 24 Jun 2017 17:31:34 +1000 Subject: osl: for should be a while Change-Id: Id4e92f0c7927bbc767061461361936dbad8da778 Reviewed-on: https://gerrit.libreoffice.org/39204 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- sal/osl/unx/file.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sal/osl/unx') diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx index 2689e5b73309..0452f2dfac7f 100644 --- a/sal/osl/unx/file.cxx +++ b/sal/osl/unx/file.cxx @@ -605,7 +605,7 @@ oslFileError FileHandle_Impl::readLineAt( size_t bufpos = nOffset - m_bufptr, curpos = bufpos, dstpos = 0; int state = (bufpos >= m_buflen) ? LINE_STATE_LF : LINE_STATE_BEGIN; - for ( ; state != LINE_STATE_LF; ) + while (state != LINE_STATE_LF) { if (curpos >= m_buflen) { -- cgit