Fix c99ism - declaration in the mid of a block

This commit is contained in:
Hans Breuer 2009-07-12 17:58:41 +02:00
parent b97ccecd5d
commit c6f9e39762

View File

@ -132,6 +132,8 @@ gtk_entry_buffer_normal_insert_text (GtkEntryBuffer *buffer,
/* Need more memory */
if (n_bytes + pv->normal_text_bytes + 1 > pv->normal_text_size)
{
gchar *et_new;
prev_size = pv->normal_text_size;
/* Calculate our new buffer size */
@ -158,7 +160,7 @@ gtk_entry_buffer_normal_insert_text (GtkEntryBuffer *buffer,
}
/* Could be a password, so can't leave stuff in memory. */
gchar *et_new = g_malloc (pv->normal_text_size);
et_new = g_malloc (pv->normal_text_size);
memcpy (et_new, pv->normal_text, MIN (prev_size, pv->normal_text_size));
trash_area (pv->normal_text, prev_size);
g_free (pv->normal_text);