Fixed potential uninitialized variable usage (compiler warning)
[opensync/google-calendar-cdf.git] / cmake / libgcal-test.c
blob8194ad0670fdaa7e26be5954c49a9a5f44e505a8
1 #include <stdio.h>
2 #include <string.h>
3 #include <stdlib.h>
5 int get_the_url(char *data, int length, char **url);
7 void xmlCleanupParser(void)
9 // if this gets called, the libgcal we are using is broken
10 exit(1);
13 int main()
15 const char *xml = "<nothing></nothing>";
16 char *dest;
17 get_the_url((char*)xml, strlen(xml), &dest);
18 return 0;