diff --git a/modules/contrib/doc/facerec/src/facerec_eigenfaces.cpp b/modules/contrib/doc/facerec/src/facerec_eigenfaces.cpp index b3d5f4dad7..66e333a090 100644 --- a/modules/contrib/doc/facerec/src/facerec_eigenfaces.cpp +++ b/modules/contrib/doc/facerec/src/facerec_eigenfaces.cpp @@ -70,7 +70,7 @@ int main(int argc, const char *argv[]) { cout << "usage: " << argv[0] << " " << endl; exit(1); } - string output_folder; + string output_folder = "."; if (argc == 3) { output_folder = string(argv[2]); } diff --git a/modules/contrib/doc/facerec/src/facerec_fisherfaces.cpp b/modules/contrib/doc/facerec/src/facerec_fisherfaces.cpp index b88d90e50d..b6a64c80de 100644 --- a/modules/contrib/doc/facerec/src/facerec_fisherfaces.cpp +++ b/modules/contrib/doc/facerec/src/facerec_fisherfaces.cpp @@ -70,7 +70,7 @@ int main(int argc, const char *argv[]) { cout << "usage: " << argv[0] << " " << endl; exit(1); } - string output_folder; + string output_folder = "."; if (argc == 3) { output_folder = string(argv[2]); } diff --git a/modules/contrib/doc/facerec/src/facerec_save_load.cpp b/modules/contrib/doc/facerec/src/facerec_save_load.cpp index d8e3104785..8bfbbdc409 100644 --- a/modules/contrib/doc/facerec/src/facerec_save_load.cpp +++ b/modules/contrib/doc/facerec/src/facerec_save_load.cpp @@ -70,7 +70,7 @@ int main(int argc, const char *argv[]) { cout << "usage: " << argv[0] << " " << endl; exit(1); } - string output_folder; + string output_folder = "."; if (argc == 3) { output_folder = string(argv[2]); }