diff options
author | Dave Airlie <airlied@redhat.com> | 2009-09-25 10:25:56 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-09-25 10:25:56 +1000 |
commit | 97d677746cd70ec9eb1f33483cc829a0063953bc (patch) | |
tree | 41f5e708b4c9ebdfd846502c4c9ff61ff8549618 | |
parent | 2a10d510d24c7c0aebb03914dd887f9e92cfa754 (diff) |
shutup stupid gcc warning, strtok_r ignores the first parameterlibpciaccess-0.10.9
-rw-r--r-- | src/common_vgaarb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |