Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Avoid fall-through when there is no ip configuration in the .ini file
  • Loading branch information
philippedeswert committed Aug 7, 2012
1 parent c457986 commit 06fce1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/usb_moded-network.c
Expand Up @@ -73,7 +73,10 @@ int usb_network_up(void)
ip = get_network_ip();
interface = get_network_interface();
if(ip == NULL)
{
system("ifconfig usb0 192.168.2.15");
return(0);
}
if(interface == NULL)
sprintf(command, "ifconfig usb0 %s\n", ip);
else
Expand Down

0 comments on commit 06fce1a

Please sign in to comment.