File: fix_assignment_of_char_to_pointer.patch

package info (click to toggle)
grabix 0.1.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,560 kB
  • sloc: ansic: 917; cpp: 320; sh: 124; python: 43; makefile: 17
file content (35 lines) | stat: -rw-r--r-- 980 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Author: Steffen Moeller
Last-Update: 2018-04-27 14:25:12 +0200
Description: fix assignment of char to pointer

Index: grabix/grabix.cpp
===================================================================
--- grabix.orig/grabix.cpp
+++ grabix/grabix.cpp
@@ -78,7 +78,7 @@ int create_grabix_index(string bgzf_file
 
     int status;
     kstring_t *line = new kstring_t;
-    line->s = '\0';
+    line->s = (char *)0;
     line->l = 0;
     line->m = 0;
 
@@ -210,7 +210,7 @@ int grab(string bgzf_file, int64_t from_
         // dump the header if there is one
         int status;
         kstring_t *line = new kstring_t;
-        line->s = '\0';
+        line->s = (char *)0;
         line->l = 0;
         line->m = 0;
 
@@ -282,7 +282,7 @@ int random(string bgzf_file, uint64_t K)
         vector<string> sample;
         int status;
         kstring_t *line = new kstring_t;
-        line->s = '\0';
+        line->s = (char *)0;
         line->l = 0;
         line->m = 0;