summaryrefslogtreecommitdiff
path: root/src/libstddjb/mininetstring_write.c
diff options
context:
space:
mode:
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) ;