Fix uninitialized variable in part-id
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 21 Oct 2010 07:35:29 +0000 (09:35 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 21 Oct 2010 07:35:29 +0000 (09:35 +0200)
commitdd48c454f14b6063f8584631f04bf4528969a82b
treead35fd686e3620b2e102717513d714fc1daf8c28
parent5d07c97811138fa1542dd09f3178dad812b81a23
Fix uninitialized variable in part-id

With gcc 4.5:

part-id.c: In function ‘main’:
part-id.c:186:9: error: ‘partition_number’ may be used uninitialized in this function

This only affected the error path, where we would return an arbitrary value in
get_part_table_device_file()'s out_partition_number (but return a failure
result). No big deal, but let's initialize it for quiescing gcc.
src/probers/part-id.c