]> www.infradead.org Git - mtd-utils.git/commit
ubi-utils: fix bug using readdir
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Mon, 7 Jan 2008 07:49:25 +0000 (09:49 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 15 Jan 2008 09:53:07 +0000 (11:53 +0200)
commit07e6203fd3078d6855e7d33597bdbbae10e555fd
treef5ddc76bfdf7985f47b77c38f6c0171562908af2
parent9ba41c4dc891e38c92126bfcc4c366d765841da0
ubi-utils: fix bug using readdir

Library functions never reset errno to zero, so if you want
to use its value to check for errors then you must set it to zero
before calling the library function (in this case readdir).

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
ubi-utils/src/libubi.c