Thu Feb 12 14:24:41 CST 2009 Pekka Pessi <first.last@nokia.com>

* sres: sres_record_type() now checks pointer argument


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11952 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-02-12 21:17:44 +00:00
parent 85315adc1b
commit f10955584c
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
Thu Feb 12 15:16:22 CST 2009 Thu Feb 12 15:17:34 CST 2009

View File

@ -1533,6 +1533,7 @@ char const *sres_record_type(int type, char buffer[8])
case sres_qtype_any: return "ANY"; case sres_qtype_any: return "ANY";
default: default:
if (buffer)
sprintf(buffer, "%u?", type & 65535); sprintf(buffer, "%u?", type & 65535);
return buffer; return buffer;
} }