]>
code.citadel.org Git - citadel.git/blobdiff - webcit-ng/util.c
char offsign;
int n = 40;
char *buf = malloc(n);
- if (!buf)
+ if (!buf) {
return (NULL);
+ }
localtime_r(&xtime, &t);
offset = t.tm_gmtoff;
if (offset > 0) {
offsign = '+';
- } else {
+ }
+ else {
offset = 0L - offset;
offsign = '-';
}