summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-08-06 10:21:20 (GMT)
committerSamuel Ortiz <sameo@linux.intel.com>2010-08-06 10:21:20 (GMT)
commitd80bf74a55c020f13f668d47ade94a016eb371b6 (patch)
tree394587efcc9c02600dbc3e465361581d829aef0c
parentbf1c5529f9762d2d870419914a15b14b02fc0d9b (diff)
downloadconnman-d80bf74a55c020f13f668d47ade94a016eb371b6.zip
connman-d80bf74a55c020f13f668d47ade94a016eb371b6.tar.gz
connman-d80bf74a55c020f13f668d47ade94a016eb371b6.tar.bz2
Always create a default profile
Even if there are other existing profiles, always create a default one.
-rw-r--r--src/profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/profile.c b/src/profile.c
index 830db89..a74d870 100644
--- a/src/profile.c
+++ b/src/profile.c
@@ -481,7 +481,7 @@ static int profile_init(void)
g_dir_close(dir);
}
- if (g_hash_table_size(profile_hash) == 0)
+ if (default_profile == NULL)
create_profile(PROFILE_DEFAULT_IDENT, "Default", NULL);
profiles_changed();