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.
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@41
d57e44dd-8a1f-0410-8b47-
8ef2f437770f
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;
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;