remove_warning in db.c

just remove some compile warning.

before
```c
db.c: In function ‘scanGenericCommand’:
db.c:419: warning: ‘patlen’ may be used uninitialized in this function
db.c:418: warning: ‘pat’ may be used uninitialized in this function
```