repo.or.cz
/
opensync
/
google-calendar-cdf.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fixed potential uninitialized variable usage (compiler warning)
[opensync/google-calendar-cdf.git]
/
cmake
/
libgcal-test.c
blob
8194ad0670fdaa7e26be5954c49a9a5f44e505a8
1
#include <stdio.h>
2
#include <string.h>
3
#include <stdlib.h>
4
5
int
get_the_url
(
char
*
data
,
int
length
,
char
**
url
);
6
7
void
xmlCleanupParser
(
void
)
8
{
9
// if this gets called, the libgcal we are using is broken
10
exit
(
1
);
11
}
12
13
int
main
()
14
{
15
const char
*
xml
=
"<nothing></nothing>"
;
16
char
*
dest
;
17
get_the_url
((
char
*)
xml
,
strlen
(
xml
), &
dest
);
18
return
0
;
19
}
20