diff options
author | vanadiae <vanadiae35@gmail.com> | 2021-12-26 15:35:03 +0100 |
---|---|---|
committer | vanadiae <vanadiae35@gmail.com> | 2021-12-28 00:26:06 +0100 |
commit | 9824d0015ea713d668173ed06c9b838d34d084ef (patch) | |
tree | a9574984137a91bd6c4144cdaf77384268622a44 | |
parent | c3816ae486e6592c3efb00b0d7be1529e1f66e5e (diff) | |
download | epiphany-9824d0015ea713d668173ed06c9b838d34d084ef.tar.gz |
prefs/search-engine-row: Move a comment back to its correct location
This comment was there because previously, when the search engine row
was built in a 100s lines function directly in ephy-search-engine-list-box.c,
it was malloc'ed at the beginning of the function and memset'ed to 0
at the beginning of the loop. But since that didn't make sense at all
retrospectively when moving the row to a separate widget and file,
I just moved it to a local variable in the loop, and without malloc. It
seems like I didn't at that time move the comment too, so this commit
fixes it.
Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1052>
-rw-r--r-- | src/preferences/ephy-search-engine-row.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preferences/ephy-search-engine-row.c b/src/preferences/ephy-search-engine-row.c index 0c56c43bc..ac80d1950 100644 --- a/src/preferences/ephy-search-engine-row.c +++ b/src/preferences/ephy-search-engine-row.c @@ -367,7 +367,6 @@ update_bang_for_name (EphySearchEngineRow *row, g_autofree char *lowercase_acronym = NULL; g_autofree char *final_bang = NULL; int i = 0; - /* Fit the largest possible size for an UTF-8 character (4 bytes) and one byte for the NUL string terminator */ /* There's nothing to do if the string is empty. */ if (g_strcmp0 (search_engine_name, "") == 0) @@ -381,6 +380,7 @@ update_bang_for_name (EphySearchEngineRow *row, for (; words[i] != NULL; ++i) { g_autofree char *uppercase_chars = NULL; char *tmp_acronym = NULL; + /* Fit the largest possible size for an UTF-8 character (4 bytes) and one byte for the NUL string terminator */ char first_word_char[5] = {0}; word = words[i]; |