[nautilus-actions] Do not add extraneous blanks when parsing parameters
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Do not add extraneous blanks when parsing parameters
- Date: Mon, 17 May 2010 18:28:27 +0000 (UTC)
commit ca6882f6473683e04c52ffd40162ab8355b7855f
Author: Pierre Wieser <pwieser trychlos org>
Date: Mon May 17 06:42:48 2010 +0200
Do not add extraneous blanks when parsing parameters
ChangeLog | 3 +++
src/core/na-object-profile.c | 15 ++++++++++++---
2 files changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 218c299..3cec298 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2010-05-17 Pierre Wieser <pwieser trychlos org>
+ * src/core/na-object-profile.c (na_object_profile_parse_parameters):
+ Do not add extraneous blanks when parsing parameters.
+
* configure.ac: Post release bump version number.
* src/io-desktop/nadp-reader.c (read_done_load_profiles):
diff --git a/src/core/na-object-profile.c b/src/core/na-object-profile.c
index 77e64c6..17b728c 100644
--- a/src/core/na-object-profile.c
+++ b/src/core/na-object-profile.c
@@ -532,19 +532,28 @@ na_object_profile_parse_parameters( const NAObjectProfile *profile, gint target,
}
if( ibname ){
+ if( strlen( basename_list->str )){
+ basename_list = g_string_append( basename_list, " " );
+ }
tmp = g_shell_quote( ibname );
- g_string_append_printf( basename_list, " %s", tmp );
+ g_string_append_printf( basename_list, "%s", tmp );
g_free( tmp );
}
if( ipath ){
+ if( strlen( pathname_list->str )){
+ pathname_list = g_string_append( pathname_list, " " );
+ }
tmp = g_shell_quote( ipath );
- g_string_append_printf( pathname_list, " %s", tmp );
+ g_string_append_printf( pathname_list, "%s", tmp );
g_free( tmp );
}
+ if( strlen( uris_list->str )){
+ uris_list = g_string_append( uris_list, " " );
+ }
tmp = g_shell_quote( iuri );
- g_string_append_printf( uris_list, " %s", tmp );
+ g_string_append_printf( uris_list, "%s", tmp );
g_free( tmp );
g_free( ibname );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]