diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2007-01-25 15:13:45 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2007-01-25 15:13:45 +0000 | 
| commit | 1f1bd7f99b9e9e87f3fca0499154d0959f089dea (patch) | |
| tree | d424a152136dc578468a37931599ba28b738d582 /input | |
| parent | a97908f58756db9ca11a56b4e378f04871ddde57 (diff) | |
Initialize subpath with '\0'
Diffstat (limited to 'input')
| -rw-r--r-- | input/input-service.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/input/input-service.c b/input/input-service.c index 5f40ffdc..871075a7 100644 --- a/input/input-service.c +++ b/input/input-service.c @@ -318,6 +318,9 @@ static const char *create_input_path(uint8_t minor)  	case 0xc0:  		strcpy(subpath, "combo");  		break; +	default: +		subpath[0] = '\0'; +		break;  	}  	if ((minor & 0x3f) && (strlen(subpath) > 0)) | 
