aboutsummaryrefslogtreecommitdiff
path: root/src/io/output.c
diff options
context:
space:
mode:
authorJ08nY2024-12-01 13:56:04 +0100
committerJ08nY2024-12-01 13:56:04 +0100
commit23c460dff96f57a4fa480ab6426700b0be384f12 (patch)
tree81a61274f2279556eb09547190e2baa41d0b89f1 /src/io/output.c
parent2e3b816158447a963af903afe5259f3d82097aa3 (diff)
downloadecgen-23c460dff96f57a4fa480ab6426700b0be384f12.tar.gz
ecgen-23c460dff96f57a4fa480ab6426700b0be384f12.tar.zst
ecgen-23c460dff96f57a4fa480ab6426700b0be384f12.zip
Diffstat (limited to 'src/io/output.c')
-rw-r--r--src/io/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io/output.c b/src/io/output.c
index a69b905..32b2de4 100644
--- a/src/io/output.c
+++ b/src/io/output.c
@@ -81,7 +81,7 @@ static JSON_Value *output_jjson(curve_t *curve) {
fprintf(err, "Error, field has unknown amount of elements.\n");
exit(1);
}
- if (curve->seed) {
+ if (curve->seed && curve->seed->seed) {
char *hex_str = bits_to_hex(curve->seed->seed);
char *hex = try_calloc(strlen(hex_str) + 3);
hex[0] = '0';