projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c924d1a
)
Committed a little bit too quickly there...
author
Mark Spencer
<markster@digium.com>
Mon, 26 Apr 2004 03:41:07 +0000
(
03:41
+0000)
committer
Mark Spencer
<markster@digium.com>
Mon, 26 Apr 2004 03:41:07 +0000
(
03:41
+0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2764
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
086ddce
..
69c03e3
100755
(executable)
--- a/
channels/chan_sip.c
+++ b/
channels/chan_sip.c
@@
-1934,7
+1934,7
@@
static int sip_register(char *value, int lineno)
static void parse(struct sip_request *req)
{
/* Divide fields by NULL's */
- char *c, *last = NULL;
+ char *c;
int f = 0;
c = req->data;
@@
-1958,10
+1958,7
@@
static void parse(struct sip_request *req)
} else {
if ((c[1] == ' ') || (c[1] == '\t')) {
/* Continuation of previous header */
- if (last) {
- while(last < c)
- *(last++) = ' ';
- }
+ *c = ' ';
} else {
f++;
req->header[f] = c + 1;