diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2012-10-10 02:59:53 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2012-10-10 02:59:53 +0000 |
| commit | 221dab875d4756a11ba1418a75a05b8b486968e7 (patch) | |
| tree | 8c8217bb72d57f2467e53b76c31aba495831cf9a /plugins/dfinput | |
| parent | 18fe428c13eca2fe18d7dc226ab5de9c08b02d2a (diff) | |
| download | pcsxr-221dab875d4756a11ba1418a75a05b8b486968e7.tar.gz | |
Quieting a warning found by Clang's static analyzer.
Properly clean up after ourselves.
Our code doesn't use Carbon, and implicitly links to System.framework (which, on OS X, is just a pointer to libSystem).
Don't include debugging symbols on release builds.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@80326 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfinput')
| -rw-r--r-- | plugins/dfinput/pad.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/dfinput/pad.c b/plugins/dfinput/pad.c index 12251104..1074b9ae 100644 --- a/plugins/dfinput/pad.c +++ b/plugins/dfinput/pad.c @@ -456,6 +456,12 @@ unsigned char PADpoll(unsigned char value) { }
}
+ //makes it so that the following switch doesn't try to dereference a null pointer
+ //quiets a warning in the Clang static analyzer.
+ if (buf == NULL) {
+ return 0;
+ }
+
switch (CurCmd) {
case CMD_READ_DATA_AND_VIBRATE:
if (g.cfg.PadDef[CurPad].Type == PSE_PAD_TYPE_ANALOGPAD) {
|
