From: <vl...@us...> - 2006-12-04 11:02:52
|
Revision: 41 http://svn.sourceforge.net/scst/?rev=41&view=rev Author: vlnb Date: 2006-12-04 03:02:50 -0800 (Mon, 04 Dec 2006) Log Message: ----------- >From Erik Habbinga <eri...@in...> This patch initializes the res variable in the scst_proc_update_size and fileio_proc_update_size to get rid of "variable might be used unintialized" compiler warnings. Modified Paths: -------------- trunk/scst/src/dev_handlers/scst_fileio.c trunk/scst/src/scst_proc.c Modified: trunk/scst/src/dev_handlers/scst_fileio.c =================================================================== --- trunk/scst/src/dev_handlers/scst_fileio.c 2006-12-04 10:59:26 UTC (rev 40) +++ trunk/scst/src/dev_handlers/scst_fileio.c 2006-12-04 11:02:50 UTC (rev 41) @@ -2270,7 +2270,7 @@ static int fileio_proc_update_size(int size, off_t offset, int length, struct fileio_proc_update_struct *p, int is_start) { - int res; + int res = 0; if (size > 0) { p->len += size; p->pos = p->begin + p->len; Modified: trunk/scst/src/scst_proc.c =================================================================== --- trunk/scst/src/scst_proc.c 2006-12-04 10:59:26 UTC (rev 40) +++ trunk/scst/src/scst_proc.c 2006-12-04 11:02:50 UTC (rev 41) @@ -737,7 +737,7 @@ static int scst_proc_update_size(int size, off_t offset, int length, struct scst_proc_update_struct *p) { - int res; + int res = 0; if (size > 0) { p->len += size; p->pos = p->begin + p->len; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |