From: <lab...@us...> - 2015-05-03 19:14:27
|
Revision: 1522 http://sourceforge.net/p/opengtoolkit/svn/1522 Author: labviewer Date: 2015-05-03 19:14:24 +0000 (Sun, 03 May 2015) Log Message: ----------- Silence some compile warnings on unix Modified Paths: -------------- trunk/lvzip/c_source/lvutil.c Modified: trunk/lvzip/c_source/lvutil.c =================================================================== --- trunk/lvzip/c_source/lvutil.c 2015-05-03 18:50:52 UTC (rev 1521) +++ trunk/lvzip/c_source/lvutil.c 2015-05-03 19:14:24 UTC (rev 1522) @@ -1059,8 +1059,8 @@ { #if MacOSX || Unix struct stat st; - char *buf; - int len; + char *buf = NULL; + int len = 0; if (lstat((const char*)LStrBuf(*src), &st)) { @@ -1085,7 +1085,7 @@ } else if (retval < len) { - err = LVPath_FromText(buf, retval, target, LV_FALSE); + err = LVPath_FromText((CStr)buf, retval, target, LV_FALSE); free(buf); break; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |