Index: select_act.c =================================================================== --- select_act.c (revision 3499) +++ select_act.c (revision 3500) @@ -156,8 +156,7 @@ commonByName: { const char *pattern = ACTION_ARG(1); -#warning "TODO: this should have a default value in case gui_get_pat() is not called" - search_method_t method; + search_method_t method = SM_REGEX; if (pattern || (pattern = gui_get_pat(&method)) != NULL) { if (SelectObjectByName(type, pattern, pcb_true, method))