summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-08-11 21:33:51 +0200
committerGravatar Matt Colyer2008-08-12 00:16:47 -0700
commit2448b82a1844fbe7cf93bf357152d4936d0c9a4a (patch)
treeae258eb110e132d592860f98731ad8bf8652b6d8 /src
parent13ebf5ea40d7094cce1e57f37e8e308429265c4a (diff)
downloadlibimobiledevice-2448b82a1844fbe7cf93bf357152d4936d0c9a4a.tar.gz
libimobiledevice-2448b82a1844fbe7cf93bf357152d4936d0c9a4a.tar.bz2
fix length of known devices
Diffstat (limited to 'src')
-rw-r--r--src/userpref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userpref.c b/src/userpref.c
index 49a3c45..0a9086b 100644
--- a/src/userpref.c
+++ b/src/userpref.c
@@ -127,7 +127,7 @@ int store_device_public_key(char* public_key)
guint length = 0;
guint wlength = 0;
if (devices_list)
- g_strv_length(devices_list);
+ length = g_strv_length(devices_list);
g_strfreev(devices_list);
gchar dev_file[20];