Page MenuHomeFreeBSD

PR# 201371: Properly initialize variable
ClosedPublic

Authored by eri on Jul 9 2015, 12:10 PM.
Referenced Files
Unknown Object (File)
Jan 31 2024, 12:39 AM
Unknown Object (File)
Jan 9 2024, 3:07 AM
Unknown Object (File)
Jan 9 2024, 3:06 AM
Unknown Object (File)
Jan 9 2024, 3:06 AM
Unknown Object (File)
Jan 9 2024, 2:50 AM
Unknown Object (File)
Dec 8 2023, 8:24 PM
Unknown Object (File)
Nov 23 2023, 2:52 PM
Unknown Object (File)
Nov 23 2023, 11:26 AM
Subscribers

Details

Summary

Apparently neither clang nor gcc complain about this.
But clang intis the var to NULL correctly while gcc on at least mips does not.
Correct the undefined behavior by initializing the variable properly.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

eri retitled this revision from to PR# 201371: Properly initialize variable.
eri updated this object.
eri edited the test plan for this revision. (Show Details)
eri added a reviewer: gnn.
eri set the repository for this revision to rS FreeBSD src repository - subversion.
eri added a project: network.
eri added a subscriber: network.

Confirmed this fixes the issue from PR reporter.

gnn edited edge metadata.
This revision is now accepted and ready to land.Jul 9 2015, 4:14 PM
This revision was automatically updated to reflect the committed changes.