adafruit/Adafruit-Raspberry-Pi-Python-Code — pull request #72 by DanielCasner (2014-01-21 07:17:07+00:00)
Title: Move formerly global variables in Adafruit_DHT driver into readDHT function

This program is intended to be used as an example and as a basis for people to write new programs. Without this fix, calling readDHT more than once in a program will eventually lead to a buffer overrun error.

In general global variables are dangerous and should especially be avoided in example code.