diff options
| author | Dmitry Antipov | 2012-06-26 09:40:33 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-06-26 09:40:33 +0400 |
| commit | 42997f4d4fb5614157f8f798286787c5d2976fb6 (patch) | |
| tree | 00570bf6d5f95ee41224b53db86fea2bc03a9f0f /src | |
| parent | 1130ecfcacce9743078221b956cd07b352776442 (diff) | |
| download | emacs-42997f4d4fb5614157f8f798286787c5d2976fb6.tar.gz emacs-42997f4d4fb5614157f8f798286787c5d2976fb6.zip | |
* term.c (delete_tty): Remove redundant call to memset.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/term.c | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ff3fa02790e..9c6bf77785b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2012-06-26 Dmitry Antipov <dmantipov@yandex.ru> | 1 | 2012-06-26 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 2 | ||
| 3 | * term.c (delete_tty): Remove redundant call to memset. | ||
| 4 | |||
| 5 | 2012-06-26 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 6 | |||
| 3 | * alloc.c: Remove build_string. | 7 | * alloc.c: Remove build_string. |
| 4 | * lisp.h: Define build_string as static inline. This provides | 8 | * lisp.h: Define build_string as static inline. This provides |
| 5 | a better opportunity to optimize away calls to strlen when the | 9 | a better opportunity to optimize away calls to strlen when the |
diff --git a/src/term.c b/src/term.c index 98f5639fb4a..471bc19ab54 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -3605,7 +3605,6 @@ delete_tty (struct terminal *terminal) | |||
| 3605 | xfree (tty->termcap_strings_buffer); | 3605 | xfree (tty->termcap_strings_buffer); |
| 3606 | xfree (tty->termcap_term_buffer); | 3606 | xfree (tty->termcap_term_buffer); |
| 3607 | 3607 | ||
| 3608 | memset (tty, 0, sizeof (struct tty_display_info)); | ||
| 3609 | xfree (tty); | 3608 | xfree (tty); |
| 3610 | } | 3609 | } |
| 3611 | 3610 | ||