rdflib: actually get the time

sizeof(t = time(NULL)) doesn't ever actually call time().

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
H. Peter Anvin 2016-02-12 21:21:57 -08:00
parent 99276cc7d9
commit 2bc798a968

View file

@ -180,7 +180,8 @@ int main(int argc, char **argv)
}
fwrite(sig_modname, 1, strlen(sig_modname) + 1, fp);
fwrite(rdl_signature, 1, strlen(rdl_signature), fp);
l = sizeof(t = time(NULL));
t = time(NULL);
l = sizeof(t);
fwrite(&l, sizeof(l), 1, fp);
fwrite(&t, 1, l, fp);
fclose(fp);