From: <svn...@op...> - 2009-09-27 05:01:23
|
Author: cdfrey Date: Sun Sep 27 07:01:09 2009 New Revision: 5854 URL: http://www.opensync.org/changeset/5854 Log: opensync_group_env.c: fixed printing of null pointers osync_group_env_load_groups() used 'path' where it should have used 'env->groupsdir' when printing status and error messages Modified: trunk/opensync/group/opensync_group_env.c Modified: trunk/opensync/group/opensync_group_env.c ============================================================================== --- trunk/opensync/group/opensync_group_env.c Sat Sep 26 15:37:36 2009 (r5853) +++ trunk/opensync/group/opensync_group_env.c Sun Sep 27 07:01:09 2009 (r5854) @@ -115,10 +115,10 @@ if (!g_file_test(env->groupsdir, G_FILE_TEST_EXISTS)) { if (g_mkdir(env->groupsdir, 0700) < 0) { - osync_error_set(error, OSYNC_ERROR_GENERIC, "Unable to create group directory at %s: %s", path, g_strerror(errno)); + osync_error_set(error, OSYNC_ERROR_GENERIC, "Unable to create group directory at %s: %s", env->groupsdir, g_strerror(errno)); goto error_free_path; } - osync_trace(TRACE_INTERNAL, "Created groups configdir %s\n", path); + osync_trace(TRACE_INTERNAL, "Created groups configdir %s\n", env->groupsdir); } } else { if (!g_path_is_absolute(path)) { @@ -133,7 +133,7 @@ goto error_free_path; } - /* Open the firectory */ + /* Open the directory */ dir = g_dir_open(env->groupsdir, 0, &gerror); if (!dir) { osync_error_set(error, OSYNC_ERROR_IO_ERROR, "Unable to open main configdir %s: %s", env->groupsdir, gerror->message); |