libblkid: fix gcc warnings
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
c2ec2ff9a2
commit
3d604b4367
|
@ -289,7 +289,7 @@ static struct gpt_header *get_gpt_header(
|
||||||
|
|
||||||
static int probe_gpt_pt(blkid_probe pr, const struct blkid_idmag *mag)
|
static int probe_gpt_pt(blkid_probe pr, const struct blkid_idmag *mag)
|
||||||
{
|
{
|
||||||
uint64_t lastlba, lba;
|
uint64_t lastlba = 0, lba;
|
||||||
struct gpt_header hdr, *h;
|
struct gpt_header hdr, *h;
|
||||||
struct gpt_entry *e;
|
struct gpt_entry *e;
|
||||||
blkid_parttable tab = NULL;
|
blkid_parttable tab = NULL;
|
||||||
|
|
|
@ -305,8 +305,8 @@ static int parse_xml(char **name, char **value, char **cp)
|
||||||
*/
|
*/
|
||||||
static int parse_tag(blkid_cache cache, blkid_dev dev, char **cp)
|
static int parse_tag(blkid_cache cache, blkid_dev dev, char **cp)
|
||||||
{
|
{
|
||||||
char *name;
|
char *name = NULL;
|
||||||
char *value;
|
char *value = NULL;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (!cache || !dev)
|
if (!cache || !dev)
|
||||||
|
|
Loading…
Reference in New Issue