cfengine/core — pull request #814 by kacfengine (2013-07-11 14:48:08+00:00)
Title: Fix uptime matching pcre_compile call and reset errno.

pcre_compile requires errptr to be present, and we should not tie the
match to the beginning of the line.

Additionally, reset errno before we try to call any uptime functions,
since otherwise we may get an error message even when there is no
error.