mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 06:33:41 +02:00
Fix gcc warnings
svn path=/trunk/; revision=7585
This commit is contained in:
@@ -65,9 +65,9 @@ unquote_string_inplace (gchar* str, gchar** end, GError** err)
|
||||
if (!(*s == '"' || *s == '\''))
|
||||
{
|
||||
if (err)
|
||||
*err = g_error_new(G_SHELL_ERROR,
|
||||
G_SHELL_ERROR_BAD_QUOTING,
|
||||
_("Quoted text doesn't begin with a quotation mark"));
|
||||
*err = g_error_new_literal (G_SHELL_ERROR,
|
||||
G_SHELL_ERROR_BAD_QUOTING,
|
||||
_("Quoted text doesn't begin with a quotation mark"));
|
||||
*end = str;
|
||||
return FALSE;
|
||||
}
|
||||
@@ -155,9 +155,9 @@ unquote_string_inplace (gchar* str, gchar** end, GError** err)
|
||||
*dest = '\0';
|
||||
|
||||
if (err)
|
||||
*err = g_error_new(G_SHELL_ERROR,
|
||||
G_SHELL_ERROR_BAD_QUOTING,
|
||||
_("Unmatched quotation mark in command line or other shell-quoted text"));
|
||||
*err = g_error_new_literal (G_SHELL_ERROR,
|
||||
G_SHELL_ERROR_BAD_QUOTING,
|
||||
_("Unmatched quotation mark in command line or other shell-quoted text"));
|
||||
*end = s;
|
||||
return FALSE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user