[maemo-commits] [maemo-commits] r8991 - projects/connectivity/osso-gwconnect/trunk/src

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Jan 9 11:43:05 EET 2007
Author: jh
Date: 2007-01-09 11:43:04 +0200 (Tue, 09 Jan 2007)
New Revision: 8991

Modified:
   projects/connectivity/osso-gwconnect/trunk/src/sdp-query.c
Log:
Fix usage of potentially uninitialized variable

Modified: projects/connectivity/osso-gwconnect/trunk/src/sdp-query.c
===================================================================
--- projects/connectivity/osso-gwconnect/trunk/src/sdp-query.c	2007-01-09 08:34:22 UTC (rev 8990)
+++ projects/connectivity/osso-gwconnect/trunk/src/sdp-query.c	2007-01-09 09:43:04 UTC (rev 8991)
@@ -233,15 +233,14 @@
         handle = rsp->data;
 
         rec = sdp_service_attr_req(sess, *handle, SDP_ATTR_REQ_RANGE, attrid);
-        if (!rec)
-            continue;
+        if (rec) {
+            add_new_service(rec);
+            sdp_record_free(rec);
+	}
 
-        add_new_service(rec);
-
         next = rsp->next;
         free(handle);
         free(rsp);
-        sdp_record_free(rec);
     }
 
     sdp_list_free(attrid, 0);


More information about the maemo-commits mailing list