projects
/
platform
/
upstream
/
libpciaccess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a10d51
)
shutup stupid gcc warning, strtok_r ignores the first parameter
libpciaccess-0.10.9
author
Dave Airlie
<airlied@redhat.com>
Fri, 25 Sep 2009 00:25:56 +0000
(10:25 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Fri, 25 Sep 2009 00:25:56 +0000
(10:25 +1000)
src/common_vgaarb.c
patch
|
blob
|
history
diff --git
a/src/common_vgaarb.c
b/src/common_vgaarb.c
index
6358a66
..
a96aedf
100644
(file)
--- 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);