summaryrefslogtreecommitdiff
path: root/src/libstddjb/mininetstring_write.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-03-13 15:54:43 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-03-13 15:54:43 +0000
commit3f62636a98777125444f5bceff812428f6a73039 (patch)
tree923a0f0bcc9607ac8cde3fa9bb3125c6c2449a83 /src/libstddjb/mininetstring_write.c
parent81fbf8c30b4a6fd3a91ba2d986f35541015ae1e6 (diff)
downloadskalibs-3f62636a98777125444f5bceff812428f6a73039.tar.xz
Applied Roman Kimov's fixesv2.3.1.3
Diffstat (limited to 'src/libstddjb/mininetstring_write.c')
-rw-r--r--src/libstddjb/mininetstring_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/mininetstring_write.c b/src/libstddjb/mininetstring_write.c
index 6b31f17..cb3c30e 100644
--- a/src/libstddjb/mininetstring_write.c
+++ b/src/libstddjb/mininetstring_write.c
@@ -8,7 +8,7 @@
int mininetstring_write (int fd, char const *s, uint16 len, uint32 *w)
{
- if (!w)
+ if (!*w)
{
char pack[2] ;
uint16_pack_big(pack, len) ;