No public description
PiperOrigin-RevId: 781419014
diff --git a/sandbox/example_suggestions.cc b/sandbox/example_suggestions.cc
index d9dcace..5dd1f6a 100644
--- a/sandbox/example_suggestions.cc
+++ b/sandbox/example_suggestions.cc
@@ -76,8 +76,6 @@
std::string affix_file = absl::GetFlag(FLAGS_affix_file);
std::string dict_file = absl::GetFlag(FLAGS_dict_file);
- sapi::v::ConstCStr c_affix_file(affix_file.c_str());
- sapi::v::ConstCStr c_dictionary_file(dict_file.c_str());
sandboxed_hunspell::LibHunspellSapiSandbox sandbox(affix_file, dict_file);
if (!sandbox.Init().ok()) {
@@ -85,6 +83,9 @@
return EXIT_FAILURE;
}
+ sapi::v::ConstCStr c_affix_file(affix_file.c_str());
+ sapi::v::ConstCStr c_dictionary_file(dict_file.c_str());
+
sandboxed_hunspell::LibHunspellApi api(&sandbox);
absl::StatusOr<sandboxed_hunspell::Hunhandle*> hunspell = api.Hunspell_create(
c_affix_file.PtrBefore(), c_dictionary_file.PtrBefore());