diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -89,13 +89,12 @@ _db_game_xml_cdata(void *pv, const char *s, int len) s_z = s_z_trimmed = strndup(s, len); - db_dbg(" %s [CDATA]", s_z); - while(isspace(*s_z_trimmed)) { ++s_z_trimmed; --len; } if (*s_z_trimmed == '\0') { + db_dbg(" (null)"); free(s_z); return; } @@ -105,6 +104,7 @@ _db_game_xml_cdata(void *pv, const char *s, int len) } *(s_z_trimmed_end + 1) = '\0'; + db_dbg(" %s", s_z_trimmed); if (*data != NULL && **data != '\0') { old_data = *data; sprintf(*data, "%s %s", *data, strdup(s_z_trimmed)); |