Browse Source

SSML: Check that skip marker is not empty

master
Yury Popov 2 years ago
parent
commit
99c282640b
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libespeak-ng/ssml.c

+ 1
- 1
src/libespeak-ng/ssml.c View File

@@ -804,7 +804,7 @@ int ProcessSsmlTag(wchar_t *xml_buf, char *outbuf, int *outix, int n_outbuf, con
// add name to circular buffer of marker names
attrcopy_utf8(buf, attr1, sizeof(buf));

if (strcmp(skip_marker, buf) == 0) {
if ((buf[0] != 0) && (strcmp(skip_marker, buf) == 0)) {
// This is the marker we are waiting for before starting to speak
*clear_skipping_text = true;
skip_marker[0] = 0;

Loading…
Cancel
Save