elflink: Allocate space for 'realname'
authorMatt Fleming <matt.fleming@intel.com>
Tue, 3 Apr 2012 15:17:17 +0000 (16:17 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 17 Apr 2012 10:23:41 +0000 (11:23 +0100)
commit816f3fc95a0098c435c314735e3b1d96729e8e7e
tree29688e4fe84a31cfadbd4b0d9d8f3ffaf8226e35
parent93de366630a82496c6afeda1b1a68b83264987f6
elflink: Allocate space for 'realname'

search_dirs() expects the 'realname' argument to point to space
allocated for storing the real path name. Currently we're passing an
uninitialized pointer which was highlighted by the following build
warning,

elflink/load_env32.c:155:18: warning: ‘realname’ may be used uninitialized in this function

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
core/elflink/load_env32.c