Skip to content

Commit

Permalink
virtfs-proxy-helper: Fix unchecked strdup() by conv. to g_strdup()
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
  • Loading branch information
Markus Armbruster authored and stefanhaRH committed Jan 30, 2013
1 parent fd3bea3 commit 606017d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fsdev/virtfs-proxy-helper.c
Expand Up @@ -1039,7 +1039,7 @@ int main(int argc, char **argv)
}
switch (c) {
case 'p':
rpath = strdup(optarg);
rpath = g_strdup(optarg);
break;
case 'n':
is_daemon = false;
Expand All @@ -1048,7 +1048,7 @@ int main(int argc, char **argv)
sock = atoi(optarg);
break;
case 's':
sock_name = strdup(optarg);
sock_name = g_strdup(optarg);
break;
case 'u':
own_u = atoi(optarg);
Expand Down

0 comments on commit 606017d

Please sign in to comment.