瀏覽代碼

[ipv6] Fix uninitialised-variable warning

Fix uninitialised-variable warning reported by gcc 4.5.2.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 年之前
父節點
當前提交
8aaa48beb8
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      src/net/ndp.c

+ 3
- 0
src/net/ndp.c 查看文件

@@ -352,6 +352,9 @@ static int ndp_rx ( struct io_buffer *iobuf,
352 352
 		remaining -= option_len;
353 353
 	}
354 354
 
355
+	/* Success */
356
+	rc = 0;
357
+
355 358
  done:
356 359
 	free_iob ( iobuf );
357 360
 	return rc;

Loading…
取消
儲存