From: Peter Jones Date: Wed, 6 Jun 2018 20:30:08 +0000 (-0400) Subject: Temporary hack in get_partition_number X-Git-Tag: android-x86-8.1-r1~83 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=af22a38252b967cb130d9c9dc7075f170a817aac;p=android-x86%2Fexternal-efivar.git Temporary hack in get_partition_number This code has been wrong for a while, but it's getting removed, so really don't bother *fixing* it so much as appeasing newer gcc's noticing that it's uninitialized. Signed-off-by: Peter Jones --- diff --git a/src/linux.c b/src/linux.c index 0b35b77..abb841f 100644 --- a/src/linux.c +++ b/src/linux.c @@ -127,7 +127,7 @@ get_partition_number(const char *devpath) int rc; unsigned int maj, min; char *linkbuf; - uint8_t *partbuf; + uint8_t *partbuf = NULL; /* XXX this is wrong and the code below will be wrong */ int ret = -1; rc = stat(devpath, &statbuf);