Displaying 1 result from an estimated 1 matches for "5033fd7".
Did you mean:
  0033fd74
  
2019 Apr 24
1
[PATCH nbdkit] server: Initialize ‘buf’ to avoid GCC 9.0.1 warning.
...^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
protocol.c:614:9: note: ‘buf’ was declared here
  614 |   char *buf;
      |         ^~~
---
 server/protocol.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/protocol.c b/server/protocol.c
index 6fd3b62..5033fd7 100644
--- a/server/protocol.c
+++ b/server/protocol.c
@@ -611,7 +611,7 @@ protocol_recv_request_send_reply (struct connection *conn)
   uint16_t cmd, flags;
   uint32_t magic, count, error = 0;
   uint64_t offset;
-  char *buf;
+  char *buf = NULL;
   CLEANUP_EXTENTS_FREE struct nbdkit_extents *ex...