22 lines
568 B
Text
22 lines
568 B
Text
$NetBSD: patch-ac,v 1.1 2005/12/18 20:24:46 rillig Exp $
|
|
|
|
Keywords: c90
|
|
|
|
--- src/misc.c.orig Tue May 3 10:40:16 2005
|
|
+++ src/misc.c Sun Dec 18 21:06:07 2005
|
|
@@ -87,12 +87,14 @@ gchar * format_time(unsigned long second
|
|
int houres = (seconds % 86400)/3600;
|
|
int minutes = (seconds % 3600)/60;
|
|
char *ret;
|
|
+ GString *str;
|
|
+
|
|
if(seconds == 0)
|
|
{
|
|
GString *str = g_string_new(NULL);
|
|
return str->str;
|
|
}
|
|
- GString *str = g_string_new(" Total time: ");
|
|
+ str = g_string_new(" Total time: ");
|
|
if(days != 0)
|
|
{
|
|
g_string_append_printf(str, "%i days ", days);
|