From 97d677746cd70ec9eb1f33483cc829a0063953bc Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 25 Sep 2009 10:25:56 +1000 Subject: [PATCH] shutup stupid gcc warning, strtok_r ignores the first parameter --- src/common_vgaarb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common_vgaarb.c b/src/common_vgaarb.c index 6358a66..a96aedf 100644 --- a/src/common_vgaarb.c +++ b/src/common_vgaarb.c @@ -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); -- 2.7.4