diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2006-02-22 13:11:04 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2006-02-22 13:11:04 +0000 |
commit | bce97330cb2a949d6c2f6cefaf7d45ceff9f9cef (patch) | |
tree | 28cc056d0b53dc22bac516a0ce2ea0017ffd025a /usb.c | |
parent | c59f58c5e2e6fcfe7ad3d13af2d6c7fb0923fd58 (diff) | |
download | ldetect-bce97330cb2a949d6c2f6cefaf7d45ceff9f9cef.tar ldetect-bce97330cb2a949d6c2f6cefaf7d45ceff9f9cef.tar.gz ldetect-bce97330cb2a949d6c2f6cefaf7d45ceff9f9cef.tar.bz2 ldetect-bce97330cb2a949d6c2f6cefaf7d45ceff9f9cef.tar.xz ldetect-bce97330cb2a949d6c2f6cefaf7d45ceff9f9cef.zip |
fix freeing a reference to a constant string (fredl)
Diffstat (limited to 'usb.c')
-rw-r--r-- | usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -65,7 +65,7 @@ extern struct pciusb_entries usb_probe(void) { e->module = strdup(driver); /* see linux/sound/usb/usbaudio.c::usb_audio_ids */ if (e->class_ == (0x1*0x100+ 0x01)) /* USB_AUDIO_CLASS*0x100 + USB_SUBCLASS_AUDIO_CONTROL*/ - e->module = "snd-usb-audio"; + e->module = strdup("snd-usb-audio"); } else if (sscanf(buf, "I: If#=%*2d Alt=%*2d #EPs=%*2d Cls=%02x(%*5c) Sub=%02x Prot=%02x Driver=", &class_, &sub, &prot) == 3) { /* prevent spurious warnings for strange USB interfaces */ |