projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaz-iconv: fix typos
[yaz-moved-to-github.git]
/
util
/
json-parse.c
diff --git
a/util/json-parse.c
b/util/json-parse.c
index
903cb8b
..
99a766c
100644
(file)
--- a/
util/json-parse.c
+++ b/
util/json-parse.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2012 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
#if HAVE_CONFIG_H
* See the file LICENSE for details.
*/
#if HAVE_CONFIG_H
@@
-13,6
+13,7
@@
#include <yaz/json.h>
#include <yaz/wrbuf.h>
#include <yaz/options.h>
#include <yaz/json.h>
#include <yaz/wrbuf.h>
#include <yaz/options.h>
+#include <yaz/backtrace.h>
void usage(const char *prog)
{
void usage(const char *prog)
{
@@
-50,6
+51,8
@@
int main(int argc, char **argv)
int print = 0;
int ret;
char *arg;
int print = 0;
int ret;
char *arg;
+
+ yaz_enable_panic_backtrace(*argv);
while ((ret = options("p", argv, argc, &arg)) != YAZ_OPTIONS_EOF)
{
switch (ret)
while ((ret = options("p", argv, argc, &arg)) != YAZ_OPTIONS_EOF)
{
switch (ret)