Commits

Anonymous committed 2305b69

Got minifind to work.

Comments (0)

Files changed (1)

libfilefind/c_glib_based/filefind.c

     return;
 }
 
+static void file_finder_calc_default_actions(file_finder_t * self);
+
 int file_find_new(file_find_handle_t * * output_handle, const char * first_target)
 {
     file_finder_t * self = NULL;
 
     *output_handle = (file_find_handle_t *)self;
 
+    file_finder_calc_default_actions(self);
+
     return FILE_FIND_OK;
 
 cleanup:
             {
                 goto cleanup;
             }
-            else if (local_status == FILEFIND_STATUS_END)
+            else if (local_status == FILEFIND_STATUS_OK)
             {
-                total_status = FILEFIND_STATUS_OK;
+                total_status = FILEFIND_STATUS_END;
             }
-            else /* (local_status == FILEFIND_STATUS_OK) */
+            else /* (local_status == FILEFIND_STATUS_END) */
             {
                 total_status = file_finder_me_die(self);