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>
struct file_info *fp;
int fd;
char *argv[] = { LDLINUX, NULL };
- char *realname;
+ char realname[FILENAME_MAX];
static const char *search_directories[] = {
"/boot/isolinux",