sizeof *data, when data isn't initalized, is that right?

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


I came across this code:

        struct mcp23s08_driver_data     *data;
	data = kzalloc(sizeof *data + chips * sizeof(struct mcp23s08),

Since data wasn't initialized when `sizeof *data' is called, wasn't this a non-initialized pointer dereference?

To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at

[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux