HaikuDepot: Fix a -Wuninitialized in server client code.
If result is not a success, then we use hasData without initializing it.
This commit is contained in:
@@ -36,7 +36,7 @@ AbstractSingleFileServerProcess::RunInternal()
|
|||||||
if (IsSuccess(result) && HasOption(SERVER_PROCESS_DROP_CACHE))
|
if (IsSuccess(result) && HasOption(SERVER_PROCESS_DROP_CACHE))
|
||||||
result = DeleteLocalFile(localPath);
|
result = DeleteLocalFile(localPath);
|
||||||
|
|
||||||
bool hasData;
|
bool hasData = false;
|
||||||
off_t size;
|
off_t size;
|
||||||
|
|
||||||
if (IsSuccess(result))
|
if (IsSuccess(result))
|
||||||
|
|||||||
Reference in New Issue
Block a user