]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
ras-record: Avoid NULL pointer when running without sqlite
authorTony Luck <tony.luck@intel.com>
Thu, 23 May 2013 20:27:31 +0000 (13:27 -0700)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 23 May 2013 20:48:21 +0000 (17:48 -0300)
commitd959c11d3090741b30fc52efd8182c8b13651f88
treea7cadfe2cd2bdb80ff4cc2bfa22b94ee57b8a00f
parent19aa98957f7eb888f12eed09eeea4cdd02ec8a0f
ras-record: Avoid NULL pointer when running without sqlite

When running "rasdaemon -f" we can dereference a NULL pointer in
ras_store_mc_event() since "ras->db_priv" is NULL.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
ras-record.c