[Swan-dev] NULL pointer initialization [was Re: Fwd: [Swan-commit] Changes to ref refs/heads/master]

D. Hugh Redelmeier hugh at mimosa.com
Sat Jul 14 06:00:09 UTC 2018

| From: Andrew Cagney <andrew.cagney at gmail.com>

| Subject: [Swan-dev] Fwd: [Swan-commit] Changes to ref refs/heads/master

When replying to a commit message, please edit the Subject: to be useful.

| Hugh,
|     - ensure alg_info_ike and alg_info_esp fields are initialized to NULL
|       (initializing a pointer's raw memory to 0x00 is not guaranteed to initialize
|       the pointer to NULL)

| You keep asserting this and I keep pointing out, from our POV, it
| isn't true.  Not even on an m68k with no VM..  Why?

My POV is to follow the C standard where possible.  The C standard does 
not provide the guarantee.  Intentionally.

In this case, I moved two initializing assignments higher in the function.

More information about the Swan-dev mailing list