diff options
| author | Roland McGrath <[email protected]> | 2010-02-15 15:16:44 -0800 |
|---|---|---|
| committer | Roland McGrath <[email protected]> | 2010-02-15 15:16:44 -0800 |
| commit | bf96347e884ee37eee3fdacdf2a616f6856e1e49 (patch) | |
| tree | 202a68c274a791608ee0ba9b2fdbbebbc7a811b0 /libdwfl/find-debuginfo.c | |
| parent | c2b26f15b23b3b360c9db83bca444d7c0afc9e94 (diff) | |
Fix uninitialized variable in error case.
Diffstat (limited to 'libdwfl/find-debuginfo.c')
| -rw-r--r-- | libdwfl/find-debuginfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdwfl/find-debuginfo.c b/libdwfl/find-debuginfo.c index 9e817398..8fdaeb39 100644 --- a/libdwfl/find-debuginfo.c +++ b/libdwfl/find-debuginfo.c @@ -1,5 +1,5 @@ /* Standard find_debuginfo callback for libdwfl. - Copyright (C) 2005, 2006, 2007, 2008, 2009 Red Hat, Inc. + Copyright (C) 2005-2010 Red Hat, Inc. This file is part of Red Hat elfutils. Red Hat elfutils is free software; you can redistribute it and/or modify @@ -198,7 +198,7 @@ find_debuginfo_in_path (Dwfl_Module *mod, const char *file_name, break; } - char *fname; + char *fname = NULL; int fd = try_open (dir, subdir, debuglink_file, &fname); if (fd < 0) switch (errno) |
