From c057388716aadb2f7d5d20c12da29ce89396402b Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Sat, 3 Dec 2011 05:23:48 +0000 Subject: Found another place that Xcode's static analyzer found. This one was saying that buf in PADpoll might be NULL, thus causing problems when using it as an array. I just got one test case, not all of them. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@72825 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- plugins/dfinput/pad.c | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/dfinput') diff --git a/plugins/dfinput/pad.c b/plugins/dfinput/pad.c index ce5d7651..12251104 100644 --- a/plugins/dfinput/pad.c +++ b/plugins/dfinput/pad.c @@ -586,6 +586,7 @@ unsigned char PADpoll(unsigned char value) { } if (CurByte >= CmdLen) return 0; + if (buf == NULL) return 0; return buf[CurByte++]; } -- cgit v1.2.3