Skip to content

Commit

Permalink
Fix possible conflict of 'tmp' variable name in setptr macro.
Browse files Browse the repository at this point in the history
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1914 ea778897-0a13-0410-b9d1-a72fbfd435f5
  • Loading branch information
ntrel committed Sep 27, 2007
1 parent 6e4fa68 commit 031ba82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/keyfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ static void load_ui_prefs(GKeyFile *config)
{
if (ui_prefs.geometry[i] < -1)
ui_prefs.geometry[i] = -1;
}
}
}
hpan_position = utils_get_setting_integer(config, PACKAGE, "treeview_position", 156);
vpan_position = utils_get_setting_integer(config, PACKAGE, "msgwindow_position", (geo) ?
Expand Down
4 changes: 2 additions & 2 deletions src/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
* It prevents a memory leak compared with: ptr = func(ptr); */
#define setptr(ptr, result)\
{\
gpointer tmp = ptr;\
gpointer setptr_tmp = ptr;\
ptr = result;\
g_free(tmp);\
g_free(setptr_tmp);\
}


Expand Down

0 comments on commit 031ba82

Please sign in to comment.