diff options
| author | Luc Teirlinck | 2004-07-06 19:36:56 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2004-07-06 19:36:56 +0000 |
| commit | cfd236932d80bf74ced790212acbf9b4d108926a (patch) | |
| tree | 7e486c17d6085a83acca13d1a3679ae623f8caa1 /src | |
| parent | 94966e2bc182e43bea47a323dc0604784dc0b824 (diff) | |
| download | emacs-cfd236932d80bf74ced790212acbf9b4d108926a.tar.gz emacs-cfd236932d80bf74ced790212acbf9b4d108926a.zip | |
(Fclear_string): Correct previous change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -2370,8 +2370,9 @@ This makes STRING unibyte and may change its length. */) | |||
| 2370 | (string) | 2370 | (string) |
| 2371 | Lisp_Object string; | 2371 | Lisp_Object string; |
| 2372 | { | 2372 | { |
| 2373 | int len = SBYTES (string); | 2373 | int len; |
| 2374 | CHECK_STRING (string); | 2374 | CHECK_STRING (string); |
| 2375 | len = SBYTES (string); | ||
| 2375 | bzero (SDATA (string), len); | 2376 | bzero (SDATA (string), len); |
| 2376 | STRING_SET_CHARS (string, len); | 2377 | STRING_SET_CHARS (string, len); |
| 2377 | STRING_SET_UNIBYTE (string); | 2378 | STRING_SET_UNIBYTE (string); |