lobaro / lobaro-coap

CoAP Implementation in C
MIT License
124 stars 47 forks source link

Allow CoAP_Res_t.pDescription to be NULL in WellKnown_GetHandler #16

Closed NZSmartie closed 7 years ago

NZSmartie commented 7 years ago

When pDescription is NULL, you'll end up with the simplified sprintf("%s", NULL); that will still try to print out a NULL string, causing some weird behaviour.

This allows the title for a resource to be set to NULL or and empty string.