gnucash maint: Fix typos.
John Ralls
jralls at code.gnucash.org
Sun Sep 16 16:05:57 EDT 2018
Updated via https://github.com/Gnucash/gnucash/commit/83b1b8ad (commit)
from https://github.com/Gnucash/gnucash/commit/162605f5 (commit)
commit 83b1b8adfc95f89df766d4a008c47a80e87df194
Author: John Ralls <jralls at ceridwen.us>
Date: Sun Sep 16 13:05:49 2018 -0700
Fix typos.
diff --git a/libgnucash/core-utils/binreloc.c b/libgnucash/core-utils/binreloc.c
index c637a06..741df77 100644
--- a/libgnucash/core-utils/binreloc.c
+++ b/libgnucash/core-utils/binreloc.c
@@ -77,23 +77,23 @@ _br_find_exe (Gnc_GbrInitError *error)
*/
gchar *prefix = g_win32_get_package_installation_directory_of_module (NULL);
gchar *result = g_build_filename (prefix, "bin", "gnucash.exe", NULL);
- if (prefix = NULL)
+ if (prefix == NULL)
{
if (error)
- *error = GNC_GBR_INIT_WIN32_NO_EXE;
+ *error = GNC_GBR_INIT_WIN32_NO_EXE_DIR;
return NULL;
}
if (!g_file_test (result, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_EXECUTABLE))
{
g_free (result);
- result = g_build_filename (prefix, "gnucash.exe");
+ result = g_build_filename (prefix, "gnucash.exe", NULL);
if (!g_file_test (result,
G_FILE_TEST_EXISTS | G_FILE_TEST_IS_EXECUTABLE))
{
g_free (result);
result = NULL;
if (error)
- *error = GNC_GBR_INIT_WIN32_NO_EXE;
+ *error = GNC_GBR_INIT_WIN32_NO_EXE_DIR;
}
}
g_free (prefix);
Summary of changes:
libgnucash/core-utils/binreloc.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
More information about the gnucash-changes
mailing list