]> git.ipfire.org Git - thirdparty/curl.git/commit
dynbuf: return NULL when there's no buffer length
authorDaniel Stenberg <daniel@haxx.se>
Sun, 17 May 2020 17:47:45 +0000 (19:47 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 17 May 2020 21:20:56 +0000 (23:20 +0200)
commit3df42ca949a8cd98c956e2ff127ee2a5d8ee8fef
tree3baafcaa6956296226e9a8c746c12155e4afa995
parent2c598cc77822b27eef5ee6c2810ed6da49ff95bf
dynbuf: return NULL when there's no buffer length

... as returning a "" is not a good idea as the string is supposed to be
allocated and returning a const string will cause issues.

Reported-by: Brian Carpenter
Follow-up to ed35d6590e72c
Closes #5405
docs/DYNBUF.md
lib/dynbuf.c