projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix
[oweals/gnunet.git]
/
src
/
monkey
/
gdbmi_get_free_vt.c
diff --git
a/src/monkey/gdbmi_get_free_vt.c
b/src/monkey/gdbmi_get_free_vt.c
index ac5c222f0ec6609b0ebaed06bd08228f59c8704a..30e8b355b19531f37f75beac8d198f923fc9fed7 100644
(file)
--- a/
src/monkey/gdbmi_get_free_vt.c
+++ b/
src/monkey/gdbmi_get_free_vt.c
@@
-136,6
+136,7
@@
release it.
mi_aux_term *gmi_look_for_free_vt()
{
+ int ret;
int vt=mi_look_for_free_vt();
mi_aux_term *res;
@@
-145,7
+146,7
@@
mi_aux_term *gmi_look_for_free_vt()
if (!res)
return NULL;
res->pid=-1;
- asprintf(&res->tty,"/dev/tty%d",vt);
+
ret =
asprintf(&res->tty,"/dev/tty%d",vt);
return res;
}