commit | 557fe9a2dd1d8836b0c2b8e82409f0923731117d | [log] [tgz] |
---|---|---|
author | Andrew Hsieh <andrewhsieh@google.com> | Wed Oct 31 14:14:32 2012 -0700 |
committer | Andrew Hsieh <andrewhsieh@google.com> | Wed Oct 31 15:40:28 2012 -0700 |
tree | 034af24412f8db212254129fe0bcd6699aa71dd4 | |
parent | 101941576c52a1270c9c2d63ea95d48729d6cf96 [diff] |
Fix build with GCC 4.7 GCC 4.7 actually digs into try_open() and find variable "fname" isn't initialized in all paths leading to its use at free(fname), but not smart enough to know that the value of fname doesn't matter when fd < 0 Initialize fname at definition before GCC gets smarter. Change-Id: I3bc5b52b3a13e5f4ec49ea0c9627bb0661b11f8a