libnfs/0001-fix-compiler-warning.patch
2024-03-21 09:59:05 +08:00

26 lines
612 B
Diff

From a25cbfed66f1419aa8cbe7c7cf45c8685143fa50 Mon Sep 17 00:00:00 2001
From: zhangyaqi <zhangyaqi@kylinos.cn>
Date: Mon, 18 Mar 2024 19:39:41 +0800
Subject: [PATCH] fix compiler warning
---
lib/socket.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/socket.c b/lib/socket.c
index e025be5..ba978c8 100644
--- a/lib/socket.c
+++ b/lib/socket.c
@@ -337,6 +337,8 @@ rpc_read_from_socket(struct rpc_context *rpc)
}
do {
+ pdu_size = 0;
+ buf = NULL;
/* Read record marker,
* 4 bytes at the beginning of every pdu.
*/
--
2.41.0