Messages in this thread | | | Date | Tue, 02 May 2006 09:24:25 +0200 | From | Daniel Aragonés <> | Subject | [PATCH/RFC] minix filesystem update to V3. Error comment. |
| |
Joshua wrote:
> Is this the error about variable might not be initalized? > What happends in the code if you just initalize to NULL?
Hi all,
No, is not this kind of error. The error message complaints about not beeing able to reference the contents of a pointer if you previously not allocate with kmalloc a location for it. Nothig has to bee initialized because the target and contents already exists.
Nothing happens if I initialize to NULL. An exception happens if I later free it with kfree instead of setting it to NULL.
Be aware that all this happens within functions included by bitops.h.
Regards,
Daniel - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |