Skip to content
Browse files

win32: cosmetic fixes in g_get_prgname()

use buffer instead of buf.
  • Loading branch information...
1 parent 9decf43 commit e4cc327da96c442d3c6df73217b2f1f03496e1dc @dieterv committed Aug 16, 2012
Showing with 7 additions and 7 deletions.
  1. +7 −7 glib/gutils.c
View
14 glib/gutils.c
@@ -1074,18 +1074,18 @@ g_get_prgname (void)
if (!beenhere)
{
- gchar *utf8_buf = NULL;
- wchar_t buf[MAX_PATH+1];
+ gchar *utf8_buffer = NULL;
+ wchar_t buffer[MAX_PATH+1];
beenhere = TRUE;
if (GetModuleFileNameW (GetModuleHandle (NULL),
- buf, G_N_ELEMENTS (buf)) > 0)
- utf8_buf = g_utf16_to_utf8 (buf, -1, NULL, NULL, NULL);
+ buffer, G_N_ELEMENTS (buffer)) > 0)
+ utf8_buffer = g_utf16_to_utf8 (buffer, -1, NULL, NULL, NULL);
- if (utf8_buf)
+ if (utf8_buffer)
{
- g_prgname = g_path_get_basename (utf8_buf);
- g_free (utf8_buf);
+ g_prgname = g_path_get_basename (utf8_buffer);
+ g_free (utf8_buffer);
}
}
}

0 comments on commit e4cc327

Please sign in to comment.
Something went wrong with that request. Please try again.