shutup stupid gcc warning, strtok_r ignores the first parameter libpciaccess-0.10.9
authorDave Airlie <airlied@redhat.com>
Fri, 25 Sep 2009 00:25:56 +0000 (10:25 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 25 Sep 2009 00:25:56 +0000 (10:25 +1000)
src/common_vgaarb.c

index 6358a66..a96aedf 100644 (file)
@@ -42,7 +42,7 @@ static int
 parse_string_to_decodes_rsrc(char *input, int *vga_count, struct pci_slot_match *match)
 {
     char *tok;
-    char *input_sp, *count_sp, *pci_sp;
+    char *input_sp = NULL, *count_sp, *pci_sp;
     char tmp[32];
 
     tok = strtok_r(input,",",&input_sp);