This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Tuesday, May 09, 2006 11:02 AM, Hien Nguyen wrote:Here it is
I initialized *ptr=NULL to get pass the compiler.
Sure, but I would like to know why that error was reported in the first place. As far as I can see, there's no way for 'ptr' to be used uninitialized. If I'm missing something, then your fix just means that we'll induce a NULL dereference if there's a problem.
Josh
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |