dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65d9238
)
Initialize conv_fails variable (for case of null strings).
author
Peter Verthez
<Peter.Verthez@advalvas.be>
Sun, 20 Jan 2002 13:29:32 +0000
(13:29 +0000)
committer
Peter Verthez
<Peter.Verthez@advalvas.be>
Sun, 20 Jan 2002 13:29:32 +0000
(13:29 +0000)
standalone.c
patch
|
blob
|
history
diff --git
a/standalone.c
b/standalone.c
index e8f94b7ab4d28e9782a24fde817d546a375fa993..75b662cecac7b6d47d773b961f6efb532c165eb3 100644
(file)
--- a/
standalone.c
+++ b/
standalone.c
@@
-27,6
+27,7
@@
#include <stdarg.h>
#include <locale.h>
#include <errno.h>
+#include <iconv.h>
#include "gedcom.h"
#include "utf8-locale.h"
@@
-174,7
+175,7
@@
void default_cb(Gedcom_ctxt ctxt, int level, char *tag, char *raw_value,
int tag_value)
{
char *converted = NULL;
- int conv_fails;
+ int conv_fails
= 0
;
if (raw_value)
converted = convert_utf8_to_locale(raw_value, &conv_fails);
output(0, "== %d %s (%d) %s (ctxt is %d, conversion failures: %d)\n",