提交 f92330b5 编写于 作者: B Behdad Esfahbod

Minor

上级 b2e398c0
...@@ -135,7 +135,7 @@ main (int argc, char **argv) ...@@ -135,7 +135,7 @@ main (int argc, char **argv)
gchar *default_path = g_strdup (font_path); gchar *default_path = g_strdup (font_path);
#endif #endif
char *path = argc > 1 ? argv[1] : (char *) default_path; char *path = argc > 1 && *argv[1] ? argv[1] : (char *) default_path;
if (argc > 2) if (argc > 2)
num_threads = atoi (argv[2]); num_threads = atoi (argv[2]);
if (argc > 3) if (argc > 3)
...@@ -143,8 +143,8 @@ main (int argc, char **argv) ...@@ -143,8 +143,8 @@ main (int argc, char **argv)
if (argc > 4) if (argc > 4)
text = argv[4]; text = argv[4];
// Dummy call to alleviate _guess_segment_properties thread safety-ness /* Dummy call to alleviate _guess_segment_properties thread safety-ness
// https://github.com/harfbuzz/harfbuzz/issues/1191 * https://github.com/harfbuzz/harfbuzz/issues/1191 */
hb_language_get_default (); hb_language_get_default ();
hb_blob_t *blob = hb_blob_create_from_file (path); hb_blob_t *blob = hb_blob_create_from_file (path);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册