Skip to content
Snippets Groups Projects
Commit 7cad1f75 authored by Jakob Olsson's avatar Jakob Olsson
Browse files

minor fixes

parent 3221372d
No related branches found
No related tags found
No related merge requests found
...@@ -176,6 +176,7 @@ char *lexer(char **input, char *delimiter) ...@@ -176,6 +176,7 @@ char *lexer(char **input, char *delimiter)
perror("strdup"); perror("strdup");
goto fail_strdup; goto fail_strdup;
} }
*input = token + strlen(delimiter); *input = token + strlen(delimiter);
} else { } else {
substr = strdup(*input); substr = strdup(*input);
...@@ -183,6 +184,7 @@ char *lexer(char **input, char *delimiter) ...@@ -183,6 +184,7 @@ char *lexer(char **input, char *delimiter)
perror("strdup"); perror("strdup");
goto fail_strdup; goto fail_strdup;
} }
*input[0] = '\0'; *input[0] = '\0';
} }
...@@ -365,7 +367,7 @@ fail: ...@@ -365,7 +367,7 @@ fail:
char *get_device_ip(char *device_name) char *get_device_ip(char *device_name)
{ {
char *iface, *destination, *gateway, *flags, *route, *binary, *ipv4_addr = NULL; char *iface, *destination, *gateway, *flags, *route, *ipv4_addr = NULL;
bool host_flag; bool host_flag;
struct in_addr addr; struct in_addr addr;
FILE *fp; FILE *fp;
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#define IPV4_MAX 16 #define IPV4_MAX 16
#define DYNAMIC_OBJ_NAME_SIZE 50 #define DYNAMIC_OBJ_NAME_SIZE 50
struct USB { struct USB {
char *product; char *product;
char *product_id; char *product_id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment