summaryrefslogtreecommitdiffstats
path: root/src/base/cmd
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-08-26 09:31:43 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2012-08-26 09:31:43 -0700
commit889ed19c1c8c56e0d888876ed0b011275eafcaf8 (patch)
tree263feec77f49a48816c5f7a40fc423fade111f8c /src/base/cmd
parent137f0347f089ecb3e23e509f4081a99ea95e3077 (diff)
downloadabc-889ed19c1c8c56e0d888876ed0b011275eafcaf8.tar.gz
abc-889ed19c1c8c56e0d888876ed0b011275eafcaf8.tar.bz2
abc-889ed19c1c8c56e0d888876ed0b011275eafcaf8.zip
Compiler warnings.
Diffstat (limited to 'src/base/cmd')
-rw-r--r--src/base/cmd/cmdHist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/cmd/cmdHist.c b/src/base/cmd/cmdHist.c
index 29a51452..4aa8105b 100644
--- a/src/base/cmd/cmdHist.c
+++ b/src/base/cmd/cmdHist.c
@@ -60,7 +60,7 @@ void Cmd_HistoryAddCommand( Abc_Frame_t * p, const char * command )
strncmp(Buffer,"source",6) &&
strncmp(Buffer,"history",7) && strncmp(Buffer,"hi ", 3) && strcmp(Buffer,"hi") )
{
- char * pStr;
+ char * pStr = NULL;
int i, Start = Abc_MaxInt( 0, Vec_PtrSize(p->aHistory) - nLastLooked );
// do not enter if the same command appears among nLastLooked commands
Vec_PtrForEachEntryStart( char *, p->aHistory, pStr, i, Start )