Network: only strdup when there is actually data