I noticed this because of a compiler warning, and I guess it
was working as the memory that written is occupying happens
to be 0.

Signed-Off-By: Simon Horman <[EMAIL PROTECTED]>

Index: kexec-tools-build-unstable/kdump/kdump.c
===================================================================
--- kexec-tools-build-unstable.orig/kdump/kdump.c       2006-09-22 
17:08:44.000000000 +0900
+++ kexec-tools-build-unstable/kdump/kdump.c    2006-09-22 17:09:19.000000000 
+0900
@@ -188,7 +188,7 @@
 
 static void write_all(int fd, const void *buf, size_t count)
 {
-       ssize_t result, written;
+       ssize_t result, written = 0;
        const char *ptr;
        size_t left;
        ptr = buf;
_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot

Reply via email to