aboutsummaryrefslogtreecommitdiffstats
path: root/timespectostr.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--timespectostr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/timespectostr.c b/timespectostr.c
index 3eca1f6..05bcaac 100644
--- a/timespectostr.c
+++ b/timespectostr.c
@@ -3,13 +3,13 @@
char *
-libsimple_timespectostr(char *restrict buf, const struct timespec *restrict ts) /* TODO test */
+libsimple_timespectostr(char *restrict buf, const struct timespec *restrict ts)
{
time_t s = ts->tv_sec;
long int ns = ts->tv_nsec;
char sign[2] = "+";
- if (!s) {
+ if (!buf) {
buf = malloc(INTSTRLEN(time_t) + sizeof("-.999999999"));
if (!buf)
return NULL;