summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2003-08-19 23:49:49 +0000
committerDavid Schleef <ds@schleef.org>2003-08-19 23:49:49 +0000
commit5659b77a600bec41296a30d91e8700561570cf13 (patch)
tree022ee8d50b8ecfe0578874db24b84405b6b9e601 /tools
parent7cd51262a7ef7fbb5f749959c7a56b30cddd6ff6 (diff)
Remove the superfluous use of { }
Original commit message from CVS: Remove the superfluous use of { }
Diffstat (limited to 'tools')
-rw-r--r--tools/gst-register.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/tools/gst-register.c b/tools/gst-register.c
index 534badf83..6fcee18c9 100644
--- a/tools/gst-register.c
+++ b/tools/gst-register.c
@@ -86,6 +86,10 @@ int main (int argc,char *argv[])
while (registries) {
GstRegistry *registry = GST_REGISTRY (registries->data);
+ GList *dir_list;
+ GList *iter;
+ char *dir;
+
if (path_spill)
{
GList *iter;
@@ -126,19 +130,13 @@ int main (int argc,char *argv[])
}
}
- {
- GList *dir_list;
- GList *iter;
- char *dir;
-
- dir_list = gst_registry_get_path_list(registry);
- for(iter = dir_list; iter; iter = iter->next) {
- dir = g_build_filename((const char *)iter->data, "scripts");
- spawn_all_in_dir(dir);
- g_free(dir);
- }
- g_list_free(dir_list);
+ dir_list = gst_registry_get_path_list(registry);
+ for(iter = dir_list; iter; iter = iter->next) {
+ dir = g_build_filename((const char *)iter->data, "scripts");
+ spawn_all_in_dir(dir);
+ g_free(dir);
}
+ g_list_free(dir_list);
registries = g_list_next (registries);
}