summaryrefslogtreecommitdiff
path: root/libs/fst
diff options
context:
space:
mode:
Diffstat (limited to 'libs/fst')
-rw-r--r--libs/fst/scanner.cc4
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;