Merge "SocketClient: add optional reference counting"
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 8e08ef3..657797e 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -401,7 +401,7 @@
service drm /system/bin/drmserver
class main
user drm
- group inet system
+ group system inet
service media /system/bin/mediaserver
class main
diff --git a/sdcard/sdcard.c b/sdcard/sdcard.c
index 0b8f656..fd003a7 100644
--- a/sdcard/sdcard.c
+++ b/sdcard/sdcard.c
@@ -326,15 +326,9 @@
fuse->all = &fuse->root;
+ memset(&fuse->root, 0, sizeof(fuse->root));
fuse->root.nid = FUSE_ROOT_ID; /* 1 */
- fuse->root.next = 0;
- fuse->root.child = 0;
- fuse->root.parent = 0;
-
- fuse->root.all = 0;
fuse->root.refcount = 2;
-
- fuse->root.name = 0;
rename_node(&fuse->root, path);
}