indicate JSON_INDENT in -v correctly

This commit is contained in:
Jan-Piet Mens 2015-09-14 16:16:43 +02:00
parent 0e65db3266
commit 3fb32a31fc

5
ocat.c
View File

@ -172,7 +172,10 @@ void print_versioninfo()
printf("\tDOCROOT = \"%s\"\n", DOCROOT);
printf("\tGHASHPREC = %d\n", GHASHPREC);
printf("\tDEFAULT_HISTORY_HOURS = %d\n", DEFAULT_HISTORY_HOURS);
printf("\tJSON_INDENT = \"%s\"\n", (JSON_INDENT) ? JSON_INDENT : "NULL");
printf("\tJSON_INDENT = ");
if (JSON_INDENT)
printf("\"%s\"\n", JSON_INDENT);
else printf("NULL\n");
exit(0);
}