libical r652 - branches/gnome-2-22/src/test
- From: pohly svn gnome org
- To: svn-commits-list gnome org
- Subject: libical r652 - branches/gnome-2-22/src/test
- Date: Mon, 8 Sep 2008 20:17:59 +0000 (UTC)
Author: pohly
Date: Mon Sep 8 20:17:58 2008
New Revision: 652
URL: http://svn.gnome.org/viewvc/libical?rev=652&view=rev
Log:
fixed incorrect setenv() call in test program
Modified:
branches/gnome-2-22/src/test/timezones.c
Modified: branches/gnome-2-22/src/test/timezones.c
==============================================================================
--- branches/gnome-2-22/src/test/timezones.c (original)
+++ branches/gnome-2-22/src/test/timezones.c Mon Sep 8 20:17:58 2008
@@ -22,6 +22,7 @@
#include <libical/ical.h>
#include <time.h>
#include <stdio.h>
+#include <stdlib.h>
int main(int argc, char **argv)
{
@@ -50,7 +51,7 @@
* select this location for glibc: needs support for TZ=<location>
* which is not POSIX
*/
- setenv("TZ", zone_location);
+ setenv("TZ", zone_location, 1);
tzset();
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]