summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6dddafc)
raw | patch | inline | side by side (parent: 6dddafc)
author | Florian Forster <ff@octo.it> | |
Wed, 14 Jul 2010 08:53:49 +0000 (10:53 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 14 Jul 2010 08:53:49 +0000 (10:53 +0200) |
src/graph_list.c | patch | blob | history |
diff --git a/src/graph_list.c b/src/graph_list.c
index 8ebf622fed6e0fce030f2e8b4ad2b501f2a0e01b..d2416f4d4772c9fd07fd48b830a7bbb95b5cbed5 100644 (file)
--- a/src/graph_list.c
+++ b/src/graph_list.c
if ((si == NULL) || (callback == NULL))
return (EINVAL);
- ident = search_to_ident (si);
- if (ident == NULL)
+ if (search_has_selector (si))
{
- fprintf (stderr, "gl_search: search_to_ident failed\n");
- return (-1);
+ ident = search_to_ident (si);
+ if (ident == NULL)
+ {
+ fprintf (stderr, "gl_search: search_to_ident failed\n");
+ return (-1);
+ }
+ }
+ else
+ {
+ ident = NULL;
}
for (i = 0; i < gl_active_num; i++)
{
int status;
- if (!graph_ident_intersect (gl_active[i], ident))
+ if ((ident != NULL) && !graph_ident_intersect (gl_active[i], ident))
continue;
status = graph_search_inst (gl_active[i], si,
{
int status;
- if (!graph_ident_intersect (gl_dynamic[i], ident))
+ if ((ident != NULL) && !graph_ident_intersect (gl_dynamic[i], ident))
continue;
status = graph_search_inst (gl_dynamic[i], si,