diff options
| author | Paul Eggert | 2014-08-24 22:44:57 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-08-24 22:44:57 -0700 |
| commit | 90c5c87753fb69dafd664615558fa3fdce3ba5b1 (patch) | |
| tree | d072b51fd01b88140786d85b5fb4927ccce1a1af /src/ralloc.c | |
| parent | d74553559b62cc7b07ed32c35391c1b75eda540f (diff) | |
| download | emacs-90c5c87753fb69dafd664615558fa3fdce3ba5b1.tar.gz emacs-90c5c87753fb69dafd664615558fa3fdce3ba5b1.zip | |
Minor cleanups of str_collate fix.
* fns.c (str_collate): Move decl from here ...
* lisp.h (str_collate): ... to here.
* sysdep.c (str_collate): Prune away some of the forest of ifdefs.
Remove unnecessary casts. Use SAFE_NALLOCA to avoid
potential problems with integer overflow. Don't assume
setlocale succeeds. Remove unnecessary test before restoring
locale via setlocale, and free the copied setlocale string
when done with it.
Fixes: debbugs:18051
Diffstat (limited to 'src/ralloc.c')
0 files changed, 0 insertions, 0 deletions