qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 5/8] ide/pci: convert to qdev.


From: Gerd Hoffmann
Subject: [Qemu-devel] Re: [PATCH 5/8] ide/pci: convert to qdev.
Date: Mon, 14 Sep 2009 09:09:00 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3

  Hi,

Sure, you have to dereference the pointer.  I still don't see a
problem here.  You seem to think this is fragile.  Why do you think
so?

Pointer not initialized, it is NULL, point nowhere, etc, etc.
No pointer, you don't need to even think about all that kind of porblems/checks.

NULL can easily be checked for, and that should also catch the "not initialized" case. Pointing into nowhere is a clear bug which needs fixing anyway.

uint8_t *foo[4]
is a different beast ... how do you declare a pointer to one array of 4
uint8_t?

This isn't a pointer to an array, it is a array of pointers ...

cheers,
  Gerd





reply via email to

[Prev in Thread] Current Thread [Next in Thread]