Created
July 19, 2015 16:11
-
-
Save iamleot/eb6dfaa8e6ffb9160b7e to your computer and use it in GitHub Desktop.
rsstail: handle possible NULL *encoding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dtff --git a/r2t.c b/r2t.c | |
index ec94369..f444b6c 100644 | |
--- a/r2t.c | |
+++ b/r2t.c | |
@@ -439,6 +439,10 @@ int main(int argc, char *argv[]) | |
return 2; | |
} | |
+ if (data_cur[cur_url]->encoding == NULL) { | |
+ data_cur[cur_url]->encoding = "utf-8"; | |
+ } | |
+ | |
if (verbose) | |
printf("Creating converter %s -> %s\n", data_cur[cur_url] -> encoding, current_encoding); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment