summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
eaf8331)
Thanks to Andrey Ponomarenko for pointing out the problem.
+ assert (c != NULL);
+ assert (command != NULL);
+
+ if ((args == NULL) && (args_num > 0))
+ return (EINVAL);
+
/* FIXME: For debugging only */
memset (buffer, 0, sizeof (buffer));
/* FIXME: For debugging only */
memset (buffer, 0, sizeof (buffer));
if ((buffer == NULL) || (*buffer_size < 1))
return (EINVAL);
if ((buffer == NULL) || (*buffer_size < 1))
return (EINVAL);
/* read one byte from the socket */
status = read_exact (c->fd, word_length, 1);
if (status != 0)
/* read one byte from the socket */
status = read_exact (c->fd, word_length, 1);
if (status != 0)
ros_reply_t *head;
ros_reply_t *tail;
ros_reply_t *head;
ros_reply_t *tail;
+ if (c == NULL)
+ return (NULL);
+
head = NULL;
tail = NULL;
head = NULL;
tail = NULL;
int status;
ros_reply_t *r;
int status;
ros_reply_t *r;
+ if ((c == NULL) || (command == NULL) || (handler == NULL))
+ return (EINVAL);
+
status = send_command (c, command, args_num, args);
if (status != 0)
return (status);
status = send_command (c, command, args_num, args);
if (status != 0)
return (status);