Browse Source

Fixing is_str_totally_null

master
BenTalagan 5 years ago
parent
commit
02447abde8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libespeak-ng/readclause.c

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

// This should never be reimplemented with integers, because // This should never be reimplemented with integers, because
// this function has to work with unaligned char* // this function has to work with unaligned char*
// (casting to int when unaligned may result in ungaranteed behaviors) // (casting to int when unaligned may result in ungaranteed behaviors)
return *str || memcmp(str, str+1, size-1);
return (*str == 0 && memcmp(str, str+1, size-1) == 0);
} }


int towlower2(unsigned int c, Translator *translator) int towlower2(unsigned int c, Translator *translator)

Loading…
Cancel
Save