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
Enable yaz backtrace for programs YAZ-802
[yaz-moved-to-github.git]
/
util
/
yaz-url.c
diff --git
a/util/yaz-url.c
b/util/yaz-url.c
index
7a78e67
..
cebf2ba
100644
(file)
--- a/
util/yaz-url.c
+++ b/
util/yaz-url.c
@@
-13,6
+13,7
@@
#include <yaz/url.h>
#include <yaz/options.h>
#include <yaz/log.h>
#include <yaz/url.h>
#include <yaz/options.h>
#include <yaz/log.h>
+#include <yaz/backtrace.h>
static void usage(void)
{
static void usage(void)
{
@@
-74,6
+75,7
@@
int main(int argc, char **argv)
int no_urls = 0;
const char *outfname = 0;
int no_urls = 0;
const char *outfname = 0;
+ yaz_enable_panic_backtrace(*argv);
while ((ret = options("h{help}H:m:O:p:R{max-redirs}:u:vx:", argv, argc, &arg))
!= YAZ_OPTIONS_EOF)
{
while ((ret = options("h{help}H:m:O:p:R{max-redirs}:u:vx:", argv, argc, &arg))
!= YAZ_OPTIONS_EOF)
{