g_str_to_ascii(): a couple of minor tweaks
authorRyan Lortie <desrt@desrt.ca>
Thu, 20 Feb 2014 23:32:04 +0000 (18:32 -0500)
committerRyan Lortie <desrt@desrt.ca>
Thu, 20 Feb 2014 23:32:42 +0000 (18:32 -0500)
commit8491f03581b6ada1d82f29064c99b604e98c7e09
treed3b78ccbc90c6cb26aca51307c1b98f3fe700e81
parenta8ea3dc03b203e18825aa4c8473c9ab832fbeddf
g_str_to_ascii(): a couple of minor tweaks

Add a precondition guard and use g_string_sized_new() to avoid some
reallocations.
glib/gtranslit.c