On Thu, Nov 3, 2011 at 6:36 PM, Luiz Capitulino <lcapitul...@redhat.com> wrote: > +Here's the implementation of the 'hello-world' HMP command: > + > +void hmp_hello_world(Monitor *mon, const QDict *qdict) > +{ > + Error *errp = NULL; > + const char *message = qdict_get_str(qdict, "message");
Since message is optional this should be qdict_get_try_str(). Stefan