[Libsysio-commit] HEAD: libsysio/tests test_path.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2009-09-21 18:15:34
|
Update of /cvsroot/libsysio/libsysio/tests In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv15077 Modified Files: test_path.c Log Message: Make lint happy. The char count variable is only used for symlinks but lint can't tell. Just initialize it always. Index: test_path.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/tests/test_path.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -w -b -B -p -r1.14 -r1.15 --- test_path.c 28 Mar 2007 21:27:12 -0000 1.14 +++ test_path.c 21 Sep 2009 18:15:21 -0000 1.15 @@ -198,6 +198,7 @@ statit(const char *path) /* * Print path and type. */ + cc = 0; if (S_ISLNK(stbuf.st_mode)) { cc = SYSIO_INTERFACE_NAME(readlink)(path, buf, sizeof(buf)); if (cc < 0) { |