[network-manager-vpnc] import: strip whitespace on values too



commit c027add1629fae946e8a5ee90c300f80cb8a3ff9
Author: Dan Williams <dcbw redhat com>
Date:   Fri Sep 11 16:31:33 2009 -0700

    import: strip whitespace on values too

 properties/pcf-file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/properties/pcf-file.c b/properties/pcf-file.c
index 9922527..76f6761 100644
--- a/properties/pcf-file.c
+++ b/properties/pcf-file.c
@@ -110,7 +110,7 @@ pcf_file_load (const char *fname)
             *(e++) = 0;
 
 			entry = g_new (PcfEntry, 1);
-			entry->value = g_strdup (e);
+			entry->value = g_strdup (g_strstrip (e));
 
 			if (*s == '!') {
 				key = g_utf8_strdown (s+1, -1);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]