diff options
author | Robin Gareus <robin@gareus.org> | 2014-03-18 20:38:37 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-03-18 20:51:59 +0100 |
commit | 0e41d008115e603eb5a11dedce51e6ccb6a4f58c (patch) | |
tree | 6cefaaed1782b4d7624d2dad44e5294e6a5e2c8e /libs/fst | |
parent | 796f6e1302d7c8a7c1c4c3ce35c67923461fd25a (diff) |
fix potential uninitialized object pointer.
Diffstat (limited to 'libs/fst')
-rw-r--r-- | libs/fst/scanner.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/fst/scanner.cc b/libs/fst/scanner.cc index 99177b51db..12a20080b6 100644 --- a/libs/fst/scanner.cc +++ b/libs/fst/scanner.cc @@ -41,7 +41,7 @@ int main (int argc, char **argv) { } char *dllpath = argv[1]; - std::vector<VSTInfo *> *infos; + std::vector<VSTInfo *> *infos = 0; #ifdef LXVST_SUPPORT if (strstr (dllpath, ".so")) { infos = vstfx_get_info_lx(dllpath); @@ -54,7 +54,7 @@ int main (int argc, char **argv) { } #endif - if (infos->empty()) { + if (!infos || infos->empty()) { return EXIT_FAILURE; } else { return EXIT_SUCCESS; |