Commit c6f9e397 authored by Hans Breuer's avatar Hans Breuer

Fix c99ism - declaration in the mid of a block

parent b97ccecd
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment