diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-01-19 20:02:23 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-01-19 20:02:23 +0000 |
commit | 4e4397a64f8d2d45e529ec113e56652fc59e1db5 (patch) | |
tree | 6f1493fe70f7e5f2470d21cfbb711588e9da7506 /nuttx/graphics/nxsu | |
parent | 76bb5e20d25f228383f34c4a827303713553e838 (diff) | |
download | nuttx-4e4397a64f8d2d45e529ec113e56652fc59e1db5.tar.gz nuttx-4e4397a64f8d2d45e529ec113e56652fc59e1db5.tar.bz2 nuttx-4e4397a64f8d2d45e529ec113e56652fc59e1db5.zip |
Fix issues detected by CppCheck tool
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3261 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxsu')
-rw-r--r-- | nuttx/graphics/nxsu/nxsu_reportposition.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/graphics/nxsu/nxsu_reportposition.c b/nuttx/graphics/nxsu/nxsu_reportposition.c index f7fc1d800..71b76aa63 100644 --- a/nuttx/graphics/nxsu/nxsu_reportposition.c +++ b/nuttx/graphics/nxsu/nxsu_reportposition.c @@ -1,7 +1,7 @@ /**************************************************************************** * graphics/nxsu/nxsu_reportposition.c * - * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2009,2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -79,7 +79,7 @@ void nxfe_reportposition(FAR struct nxbe_window_s *wnd) { - FAR struct nxbe_state_s *be = wnd->be; + FAR struct nxbe_state_s *be; struct nxgl_size_s size; #ifdef CONFIG_DEBUG @@ -88,6 +88,7 @@ void nxfe_reportposition(FAR struct nxbe_window_s *wnd) return; } #endif + be = wnd->be; /* This is very awkward in single user mode, but at least it is compatible. * with the way things are done in multiple user mode. |