lkml.org 
[lkml]   [2006]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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/

\
 
 \ /
  Last update: 2006-05-02 09:27    [W:0.026 / U:0.868 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site