This commit is contained in:
djcb 2013-01-13 22:50:07 +02:00
parent bb2b65220a
commit 89c555d047
2 changed files with 5 additions and 4 deletions

View File

@ -317,8 +317,9 @@ mu_script_guile_run (MuScriptInfo *msi, const char *muhome,
g_return_val_if_fail (muhome, FALSE);
if (access (mu_script_info_path (msi), R_OK) != 0) {
mu_util_g_set_error (err, MU_ERROR_FILE_CANNOT_READ,
strerror(errno));
mu_util_g_set_error (err, MU_ERROR_FILE_CANNOT_READ,
"failed to read script: %s",
strerror(errno));
return FALSE;
}
argv[2] = (char*)mu_script_info_path (msi);

View File

@ -166,7 +166,7 @@ char* mu_str_xapian_escape_in_place_try (char *query, gboolean esc_space,
* replace ':' with '_', if it's not following a xapian-prefix (such
* as 'subject:', 't:' etc, as defined in mu-msg-fields.[ch]).
*
* @param query a query string
* @param str a string
* @param esc_space escape space characters as well
* @param strchunk (optional) if non-NULL, allocate strings on strchunk
*
@ -174,7 +174,7 @@ char* mu_str_xapian_escape_in_place_try (char *query, gboolean esc_space,
* Unless strchunk was provided, user must g_free the string when
* no longer needed
*/
char* mu_str_xapian_escape (const char *query, gboolean esc_space,
char* mu_str_xapian_escape (const char *str, gboolean esc_space,
GStringChunk *strchunk) G_GNUC_WARN_UNUSED_RESULT;