nanovms / nanos

A kernel designed to run one and only one application in a virtualized environment
https://nanos.org
Apache License 2.0
2.58k stars 133 forks source link

tmpfs_create(): add missing initialization of return value #2009

Closed francescolavra closed 5 months ago

francescolavra commented 5 months ago

The fss variable, which contains the return value of the tmpfs_create() function, is not being initialized when creating non-regular files. This issue is detected by the clang compiler with "error: variable 'fss' is used uninitialized whenever 'if' condition is false".