diff options
author | Jim Meyering <jim@meyering.net> | 2004-05-31 11:30:27 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-05-31 11:30:27 +0000 |
commit | 6b970542fe4cccd2822f53d74d4561219c75b52e (patch) | |
tree | be3715b41cde8559e67044e33f28765feb57f5d3 | |
parent | 7b03cfb5dc4dcabee5c964f7d60ac89a7d02390a (diff) | |
download | coreutils-6b970542fe4cccd2822f53d74d4561219c75b52e.tar.xz |
(set_initialize): Remove unnecessary initialization of the `in_set'
buffer; that initialization triggered the same compiler bug as above.
-rw-r--r-- | src/tr.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1664,10 +1664,11 @@ read_and_xlate (char *buf, size_t size) return bytes_read; } -/* Initialize a boolean membership set IN_SET with the character +/* Initialize a boolean membership set, IN_SET, with the character values obtained by traversing the linked list of constructs S - using the function `get_next'. If COMPLEMENT_THIS_SET is - true the resulting set is complemented. */ + using the function `get_next'. IN_SET is expected to have been + initialized to all zeros by the caller. If COMPLEMENT_THIS_SET + is true the resulting set is complemented. */ static void set_initialize (struct Spec_list *s, bool complement_this_set, bool *in_set) @@ -1675,7 +1676,6 @@ set_initialize (struct Spec_list *s, bool complement_this_set, bool *in_set) int c; size_t i; - memset (in_set, 0, N_CHARS * sizeof (in_set[0])); s->state = BEGIN_STATE; while ((c = get_next (s, NULL)) != -1) in_set[c] = true; |