summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2008-09-14 11:33:11 -0700
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-09-14 11:33:11 -0700
commitc5dd9adb104b44a4ebb9006fb3205b7c74c3beb5 (patch)
tree52d5a5f0946449725871bfdb4a82e666fc27a442 /src
parentd57309560fee407061e8526f462655d59f107654 (diff)
fix bug that both implementations of record_from_string() shared
Diffstat (limited to 'src')
-rw-r--r--src/storage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/storage.c b/src/storage.c
index 83aabb00..fc0f15d4 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -777,6 +777,7 @@ static sdp_record_t *record_from_string(const gchar *str)
size = strlen(str)/2;
pdata = g_malloc0(size);
+ tmp[2] = 0;
for (i = 0; i < size; i++) {
memcpy(tmp, str + (i * 2), 2);
pdata[i] = (uint8_t) strtol(tmp, NULL, 16);