[Pidgin] #3497: Add support for aMSN in Log Reader.

Pidgin trac at pidgin.im
Fri Oct 12 18:59:50 EDT 2007


#3497: Add support for aMSN in Log Reader.
----------------------+-----------------------------------------------------
  Reporter:  QuLogic  |       Owner:  sadrul               
      Type:  patch    |      Status:  reopened             
  Priority:  minor    |   Milestone:  2.2.2                
 Component:  plugins  |     Version:  2.2.1                
Resolution:           |    Keywords:  log, amsn, log_reader
   Pending:  0        |  
----------------------+-----------------------------------------------------
Comment (by rlaager):

 Here's the code in question. The first loop sticks "filename" into a list.
 The second loop pulls it out and uses it.

 {{{
         /* Check in previous months */
         2190            dir = g_dir_open(log_path, 0, NULL);
         2191            if (dir) {
         2192                    while ((name = g_dir_read_name(dir)) !=
 NULL) {
         2193                            filename =
 g_build_filename(log_path, name, buddy_log, NULL);
         2194                            if (g_file_test(filename,
 G_FILE_TEST_EXISTS))
         2195                                    files =
 g_list_prepend(files, filename);
         2196                            else
         2197                                    g_free(filename);
         2198                    }
         2199                    g_dir_close(dir);
         2200            }
         2201
         2202            g_free(log_path);
         2203            g_free(username);
         2204            g_free(buddy_log);
         2205
         2206            /* Loop through files looking for logs */
         2207            for(f = g_list_first(files); f; f =
 g_list_next(f)) {
         2208                    filename = f->data;
 }}}

-- 
Ticket URL: <http://developer.pidgin.im/ticket/3497#comment:5>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list