service: Use correct string for Proxy.Method
authorLeena Gunda <leena.gunda@wipro.com>
Tue, 9 Nov 2010 14:03:00 +0000 (15:03 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 9 Nov 2010 14:05:59 +0000 (15:05 +0100)
Fixes BMC#9735

src/service.c

index d8d4899..b1842d6 100644 (file)
@@ -4529,9 +4529,9 @@ update:
                                                        "Domains", NULL);
 
        cst_str = proxymethod2string(service->proxy);
-       if (str != NULL)
+       if (cst_str != NULL)
                g_key_file_set_string(keyfile, service->identifier,
-                               "Proxy.Method", str);
+                               "Proxy.Method", cst_str);
 
        if (service->proxies != NULL) {
                guint len = g_strv_length(service->proxies);