diff --git a/scst/src/dev_handlers/scst_fileio.c b/scst/src/dev_handlers/scst_fileio.c index 46fcb076a..500c84897 100644 --- a/scst/src/dev_handlers/scst_fileio.c +++ b/scst/src/dev_handlers/scst_fileio.c @@ -2270,7 +2270,7 @@ struct fileio_proc_update_struct { 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; diff --git a/scst/src/scst_proc.c b/scst/src/scst_proc.c index 580cc974b..570d7064a 100644 --- a/scst/src/scst_proc.c +++ b/scst/src/scst_proc.c @@ -737,7 +737,7 @@ struct scst_proc_update_struct { 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;