Thread (6 messages) flat view 6 messages, 5 authors, 2007-08-13

Re: DTC 1.0.0 Release

From: Olaf Hering <hidden>
Date: 2007-08-10 21:21:11

On Thu, Aug 09, Jon Loeliger wrote:
As usual, please let me know of any issues with it.
tests/truncated_property.c:45: warning: 'err' is used uninitialized in this function

(untested patch)

---
 tests/truncated_property.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
--- a/tests/truncated_property.c
+++ b/tests/truncated_property.c
@@ -33,7 +33,6 @@ int main(int argc, char *argv[])
 {
 	void *fdt = &_truncated_property;
 	const void *prop;
-	int err;
 	int len;
 
 	test_init(argc, argv);
@@ -43,7 +42,7 @@ int main(int argc, char *argv[])
 		FAIL("fdt_getprop() succeeded on truncated property");
 	if (len != -FDT_ERR_BADSTRUCTURE)
 		FAIL("fdt_getprop() failed with \"%s\" instead of \"%s\"",
-		     fdt_strerror(err), fdt_strerror(-FDT_ERR_BADSTRUCTURE));
+		     fdt_strerror(len), fdt_strerror(-FDT_ERR_BADSTRUCTURE));
 
 	PASS();
 }
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help