Fix two uninitialized variable warnings

gcc only reports them when compiling with -O3.
This commit is contained in:
Matthias Bolte 2011-05-10 08:39:56 +02:00
parent ebea59ad82
commit fc0ab50abd
2 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ ifaceGetFlags(const char *ifname, short *flags) {
int
ifaceIsUp(const char *ifname, bool *up) {
short flags;
short flags = 0;
int rc = ifaceGetFlags(ifname, &flags);
if (rc)

View File

@ -2857,7 +2857,7 @@ static bool
cmdSetvcpus(vshControl *ctl, const vshCmd *cmd)
{
virDomainPtr dom;
int count;
int count = 0;
bool ret = true;
int maximum = vshCommandOptBool(cmd, "maximum");
int config = vshCommandOptBool(cmd, "config");