Skip to content

Commit

Permalink
Move an unused variable into an #ifdef where it is used
Browse files Browse the repository at this point in the history
  • Loading branch information
richardcohen committed Feb 6, 2023
1 parent 1c66797 commit bd8e81f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libgnucash/core-utils/binreloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ _br_find_exe (Gnc_GbrInitError *error)
char *line, *result;
size_t buf_size = PATH_MAX + 1;
FILE *f;
uint32_t size2;

#ifdef MAC_INTEGRATION
result = gtkosx_application_get_executable_path();
Expand All @@ -115,7 +114,7 @@ _br_find_exe (Gnc_GbrInitError *error)
g_print ("Application Path %s\n", path2);
#elif defined GNC_PLATFORM_OSX
/* Native Mac, but not Aqua */
size2 = buf_size;
uint32_t size2 = buf_size;
if (_NSGetExecutablePath (path2, &size2) != 0)
{
/* buffer not big enough or some other error */
Expand Down

0 comments on commit bd8e81f

Please sign in to comment.