net/usrsock: fix error: variable 'pos' is used uninitialized
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
c82b446fa9
commit
5b839061f9
|
@ -449,7 +449,7 @@ static off_t usrsockdev_seek(FAR struct file *filep, off_t offset,
|
|||
{
|
||||
pos = dev->req.pos + offset;
|
||||
}
|
||||
else if (whence == SEEK_SET)
|
||||
else
|
||||
{
|
||||
pos = offset;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue