(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dtd_preparse.c) |
| |
| 2015 | | | extern GString* dtd_preparse(const gchar* dname,const gchar* fname, GString* err) { |
| 2016 | | | gchar* fullname = g_strdup_printf("%s%c%s",dname,G_DIR_SEPARATOR,fname); |
| 2017 | | | |
| 2018 | | | dtd_dirname = dname; |
| 2019 | | | filename = fname; |
| 2020 | | | linenum = 1; |
| 2021 | | | |
| 2022 | | | Dtd_PreParse_in = ws_fopen(fullname,"r"); |
| 2023 | | | |
| 2024 | | | if (!Dtd_PreParse_in) { |
Event 7:
Skipping " if". Dtd_PreParse_in evaluates to true.
hide
|
|
| 2025 | | | if (err) |
| 2026 | | | g_string_append_printf(err, "Could not open file: '%s', error: %s",fullname,strerror(errno)); |
| 2027 | | | |
| 2028 | | | return NULL; |
| 2029 | | | } |
| 2030 | | | |
| 2031 | | | error = err; |
| 2032 | | | |
| 2033 | | | entities = g_hash_table_new(g_str_hash,g_str_equal); |
| 2034 | | | current = output = g_string_new(location()); |
| 2035 | | | |
| 2036 | | | BEGIN OUTSIDE; |
| 2037 | | | |
| 2038 | [+] | | Dtd_PreParse_lex(); |
 |
| |