comparison plugins/log_reader.c @ 14035:8bda65b88e49

[gaim-migrate @ 16638] A bunch of small changes. Mostly remove "if not null" checks before calling g_free, g_list_free, g_slist_free and g_strdup. Also use g_list_foreach() to call g_free to free strings in an array. And some whitespace changes here and there. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 05 Aug 2006 08:27:39 +0000
parents 85267a333422
children 034a3ffa09de
comparison
equal deleted inserted replaced
14034:0839a7b71325 14035:8bda65b88e49
298 if (gaim_prefs_get_bool("/plugins/core/log_reader/fast_sizes")) { 298 if (gaim_prefs_get_bool("/plugins/core/log_reader/fast_sizes")) {
299 struct stat st; 299 struct stat st;
300 300
301 if (!data->path || stat(data->path, &st)) 301 if (!data->path || stat(data->path, &st))
302 st.st_size = 0; 302 st.st_size = 0;
303 303
304 return st.st_size; 304 return st.st_size;
305 } 305 }
306 306
307 text = adium_logger_read(log, NULL); 307 text = adium_logger_read(log, NULL);
308 size = strlen(text); 308 size = strlen(text);
397 struct messenger_plus_logger_data *data = log->logger_data; 397 struct messenger_plus_logger_data *data = log->logger_data;
398 398
399 g_return_val_if_fail(log != NULL, g_strdup("")); 399 g_return_val_if_fail(log != NULL, g_strdup(""));
400 400
401 data = log->logger_data; 401 data = log->logger_data;
402 402
403 /* TODO: Do something here. */ 403 /* TODO: Do something here. */
404 return g_strdup(""); 404 return g_strdup("");
405 } 405 }
406 406
407 static int messenger_plus_logger_size (GaimLog *log) 407 static int messenger_plus_logger_size (GaimLog *log)