Index: patches/04_parse_extension_descriptor_null_check.patch |
diff --git a/patches/04_parse_extension_descriptor_null_check.patch b/patches/04_parse_extension_descriptor_null_check.patch |
new file mode 100644 |
index 0000000000000000000000000000000000000000..eef68269fe763f9bbe050d417a952d00eb631e6d |
--- /dev/null |
+++ b/patches/04_parse_extension_descriptor_null_check.patch |
@@ -0,0 +1,15 @@ |
+Index: src/libmtp.c |
+=================================================================== |
+--- src/libmtp.c (revision 148643) |
++++ src/libmtp.c (working copy) |
+@@ -1728,6 +1728,10 @@ |
+ int start = 0; |
+ int end = 0; |
+ |
++ /* NULL on Canon A70 */ |
++ if (!desc) |
++ return; |
++ |
+ /* descriptors are divided by semicolons */ |
+ while (end < strlen(desc)) { |
+ /* Skip past initial whitespace */ |