[Buoh-dev] CVS commit to /cvsroot/buoh/buoh/src by carlosgc
- From: noreply at forge.novell.com (noreply forge novell com)
- Subject: [Buoh-dev] CVS commit to /cvsroot/buoh/buoh/src by carlosgc
- Date: Tue Aug 15 09:42:54 2006
CVS commit to /cvsroot/buoh/buoh/src by carlosgc
Modified Files:
buoh-comic-manager-date.c
Log Message:
2005-11-21 Carlos Garcia Campos <carlosgc gnome org>
* src/buoh-comic-manager-date.c: Minor code cleanup
===================================================================
RCS file: /cvsroot/buoh/buoh/src/buoh-comic-manager-date.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- /cvsroot/buoh/buoh/src/buoh-comic-manager-date.c 2005/11/16 20:29:28 1.9
+++ /cvsroot/buoh/buoh/src/buoh-comic-manager-date.c 2005/11/21 20:59:45 1.10
@@ -97,6 +97,7 @@
comic_manager->priv = BUOH_COMIC_MANAGER_DATE_GET_PRIVATE (comic_manager);
comic_manager->priv->date = NULL;
+ comic_manager->priv->first = NULL;
for (i = G_DATE_BAD_WEEKDAY; i <= G_DATE_SUNDAY; i++)
comic_manager->priv->publications[i] = TRUE;
@@ -189,7 +190,9 @@
/* Bug? */
time.tm_year += 1900;
date = g_date_new_dmy (time.tm_mday, time.tm_mon + 1, time.tm_year);
-
+
+ if (comic_manager->priv->first)
+ g_date_free (comic_manager->priv->first);
comic_manager->priv->first = date;
}
@@ -214,10 +217,11 @@
buoh_comic_manager_date_get_uri_from_date (BuohComicManagerDate *comic_manager)
{
gchar uri[URI_BUFFER];
- gchar *uri_aux;
+ gchar *uri_aux = NULL;
g_object_get (G_OBJECT (comic_manager),
"generic_uri", &uri_aux, NULL);
+ g_assert (uri_aux != NULL);
if (g_date_strftime (uri, URI_BUFFER,
uri_aux,
@@ -445,8 +449,8 @@
if (priv->date != NULL)
g_date_free (priv->date);
priv->date = g_date_new_dmy (g_date_get_day (priv->first),
- g_date_get_month (priv->first),
- g_date_get_year (priv->first));
+ g_date_get_month (priv->first),
+ g_date_get_year (priv->first));
first = g_list_first (comic_list);
comic = BUOH_COMIC (first->data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]