summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-08-06 12:21:20 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2010-08-06 12:21:20 +0200
commitd80bf74a55c020f13f668d47ade94a016eb371b6 (patch)
tree394587efcc9c02600dbc3e465361581d829aef0c /src
parentbf1c5529f9762d2d870419914a15b14b02fc0d9b (diff)
downloadconnman-d80bf74a55c020f13f668d47ade94a016eb371b6.tar.gz
connman-d80bf74a55c020f13f668d47ade94a016eb371b6.tar.bz2
connman-d80bf74a55c020f13f668d47ade94a016eb371b6.zip
Always create a default profile
Even if there are other existing profiles, always create a default one.
Diffstat (limited to 'src')
-rw-r--r--src/profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/profile.c b/src/profile.c
index 830db896..a74d8707 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();