Fixed device default to "/dev/modem"

This commit is contained in:
Pierre Pronchery 2010-05-14 12:43:00 +00:00
parent 2933d4cf55
commit 41f560524d

View File

@ -252,8 +252,6 @@ GSM * gsm_new(char const * device, unsigned int baudrate, unsigned int hwflow)
{
GSM * gsm;
if(device == NULL)
return NULL;
if((gsm = malloc(sizeof(*gsm))) == NULL)
return NULL;
/* settings */